Relocatable Symbols in Expression.

Gagneet Singh gagneet@acmet.com
Thu Feb 26 10:23:00 GMT 2004


Hi!

Thank you for the answer. 
We shall try and find a way out of this problem and if found, I shall
post it to the mailing list.

Else, we use the solution that you have sent.. :-)

Gagneet

>-----Original Message-----
>From: Alan Modra [mailto:amodra@bigpond.net.au] 
>Sent: Thursday, 26 February, 2004 10:42 AM
>To: Gagneet Singh
>Cc: binutils@sources.redhat.com
>Subject: 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
>



More information about the Binutils mailing list