i386 relocation, _GLOBAL_OFFSET_TABLE_ -fPIC

Alan Modra amodra@bigpond.net.au
Fri Jun 22 00:39:00 GMT 2001


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



More information about the Binutils mailing list