[Top][All Lists]

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

Re: relocation entries for absolute symbols

From: Ian Lance Taylor
Subject: Re: relocation entries for absolute symbols
Date: 26 Jun 2006 15:20:53 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Amit Gud <address@hidden> writes:

> I'm compiling the GNU/Linux kernel as a shared library and I've found
> that relocation entries are created even for absolute symbols. Is
> there any work-around for this, or is it a known bug?

That is correct behaviour if the symbol is globally visible.  In a
shared library, by default, any symbol may be overridden by the main
executable.  That means that a relocation entry is required.

One fix would be to force the symbol to be hidden using an attribute
or a linker script.


reply via email to

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