This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Multiple relocation in ELF


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]