This is the mail archive of the binutils@sources.redhat.com 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: Relocatable Symbols in Expression.


On Thu, Feb 26, 2004 at 10:10:40AM +0530, Gagneet Singh wrote:
> If an immediate operand to an instruction is an expression involving
> more than one relocatable symbols, how is it handled in output file in
> elf format. 

ELF relocation formats generally only allow one symbol per relocation.
If you can't reduce one of the symbols to something implicit in the
reloc type, eg. pc-relative or got relative, then you will need to emit
more than one relocation on the same data.

-- 
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]