This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Multiple relocation in ELF
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Santosh <santosh at acmet dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 24 Jul 2006 23:33:00 +0930
- Subject: Re: Multiple relocation in ELF
- References: <000001c6af0f$4a9a8a50$eb00a8c0@santosh>
On Mon, Jul 24, 2006 at 04:22:41PM +0530, Santosh wrote:
> ADDIU r2, RELOCATABLE_SYMBOL + RELOCATABLE_SYMBOL
>
> In ELF, we can emit relocation information for only one symbol having
> its symbol index, offset and relocation value to apply. But when I try
> to give more than one relocatable symbol, it cannot be represented by
> ELF format.
ELF can support multiple symbols in a relocation expression. The trick
is to apply multiple suitably defined relocations to the one location.
--
Alan Modra
IBM OzLabs - Linux Technology Centre