This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Relocatable Symbols in Expression.
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Gagneet Singh <gagneet at acmet dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 26 Feb 2004 15:41:50 +1030
- Subject: Re: Relocatable Symbols in Expression.
- References: <1077752988.19518.ezmlm@sources.redhat.com> <007801c3fc22$affe6bc0$9900a8c0@GAGNEET>
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