Multiple relocation in ELF

Ian Lance Taylor iant@google.com
Mon Jul 24 19:07:00 GMT 2006
Michael Eager <eager@eagercon.com> writes:

> Can you give an example of how this might be done?  I don't think that
> it is possible to apply two relocations to a single location in ELF.

You need to write the relocation semantics so that it will work.  It
won't work in general.

The 64-bit MIPS ABI is an example of a processor supplement which
applies multiple relocations to a single address.  However, it does it
in a different way, by changing the reloc format.

In general it's very odd to want to add two relocatable symbols.  The
result is unlikely to be useful.

Ian



More information about the Binutils mailing list