Relocatable Symbols in Expression.

Alan Modra amodra@bigpond.net.au
Thu Feb 26 05:11:00 GMT 2004


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



More information about the Binutils mailing list