Multiple relocation in ELF
Alan Modra
amodra@bigpond.net.au
Mon Jul 24 14:03:00 GMT 2006
On Mon, Jul 24, 2006 at 04:22:41PM +0530, Santosh wrote:
> ADDIU r2, RELOCATABLE_SYMBOL + RELOCATABLE_SYMBOL
>
> In ELF, we can emit relocation information for only one symbol having
> its symbol index, offset and relocation value to apply. But when I try
> to give more than one relocatable symbol, it cannot be represented by
> ELF format.
ELF can support multiple symbols in a relocation expression. The trick
is to apply multiple suitably defined relocations to the one location.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list