[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: relocation entries for absolute symbols

From: Alan Modra
Subject: Re: relocation entries for absolute symbols
Date: Wed, 19 Jul 2006 18:42:16 +0930
User-agent: Mutt/1.4i

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]