This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: relocation entries for absolute symbols


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]