This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: Relocatable Symbols in Expression.
- From: "Gagneet Singh" <gagneet at acmet dot com>
- To: "'Alan Modra'" <amodra at bigpond dot net dot au>
- Cc: <binutils at sources dot redhat dot com>
- Date: Thu, 26 Feb 2004 15:49:37 +0530
- Subject: RE: Relocatable Symbols in Expression.
- Organization: Acme Technologies Pvt. Ltd.
- Reply-to: <gagneet at acmet dot com>
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
>