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


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to