This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: i386 relocation, _GLOBAL_OFFSET_TABLE_ -fPIC
- To: John Reiser <jreiser at BitWagon dot com>
- Subject: Re: i386 relocation, _GLOBAL_OFFSET_TABLE_ -fPIC
- From: Alan Modra <amodra at bigpond dot net dot au>
- Date: Fri, 22 Jun 2001 17:14:13 +0930
- Cc: binutils at sources dot redhat dot com
- References: <3B250798.4D5D952B@BitWagon.com>
On Mon, Jun 11, 2001 at 11:02:00AM -0700, John Reiser wrote:
>
> So, what is the climate for new R_386_* relocation types?
Why would you need a new relocation type to load %ebx with the
address of the .got? Seems to me that existing relocs, eg.
R_386_32 or R_326_RELATIVE will do what you want.
You might like to consider putting your
put_GLOBAL_OFFSET_TABLE_into_ebx function into it's own section.
--
Alan Modra