Re: relocation entries for absolute symbols

2006-07-19 Thread Alan Modra
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.

Re: relocation entries for absolute symbols

2006-07-13 Thread Vivek Goyal
On Thu, Jul 13, 2006 at 10:45:34AM +0200, Peter S. Mazinger wrote: > On Wed, 12 Jul 2006, Vivek Goyal wrote: > > > On Mon, Jun 26, 2006 at 03:20:53PM -0700, Ian Lance Taylor wrote: > > > Amit Gud <[EMAIL PROTECTED]> writes: > > > > > > > I'm compiling the GNU/Linux kernel as a shared library and

Re: relocation entries for absolute symbols

2006-07-13 Thread Peter S. Mazinger
On Wed, 12 Jul 2006, Vivek Goyal wrote: > On Mon, Jun 26, 2006 at 03:20:53PM -0700, Ian Lance Taylor wrote: > > Amit Gud <[EMAIL PROTECTED]> 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.

Re: relocation entries for absolute symbols

2006-07-12 Thread Vivek Goyal
On Mon, Jun 26, 2006 at 03:20:53PM -0700, Ian Lance Taylor wrote: > Amit Gud <[EMAIL PROTECTED]> 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

Re: relocation entries for absolute symbols

2006-06-26 Thread Ian Lance Taylor
Amit Gud <[EMAIL PROTECTED]> 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

relocation entries for absolute symbols

2006-06-26 Thread Amit Gud
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? AG -- May the source be with you. http://www.cis.ksu.edu/~gud ___