relocation entries for absolute symbols
Alan Modra
amodra@bigpond.net.au
Wed Jul 19 09:12:00 GMT 2006
On Thu, Jul 13, 2006 at 09:33:25AM -0400, Vivek Goyal wrote:
> Everything else seems to be ok if I link with option "-pie -Bsymbolic"
> except the fact that relocations of type R_386_RELATIVE are being
> generated for absolute symbols.
Yes, this is a rather sorry result of historical mistakes. Symbols such
as _GLOBAL_OFFSET_TABLE_ are required to be absolute for compatibility
with old dynamic loaders, but of course they really are not absolute.
They point into the shared lib, so need to be relocated. This is why
we generate relocations on absolute symbols.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list