Re: Setting up of GP in static, non-PIC version of glibc?

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

 



On Mon, Feb 25, 2002 at 07:31:41PM +0100, Johannes Stezenbach wrote:

> > 
> > Non-PIC code doesn't use $gp, so any reference to $gp is a bug.  Note
> > that we don't support global data optimization for ELF either that is,
> > -G 0 is the default.
> 
> I recently experimented with dietlibc and tried to create
> static, non-PIC binaries, with some success.
> Contradicting the docs (gcc info), -G 0 is not the default but
> has to be passed explicitely (even when using the GNU assembler).

It always was until somebody broke gcc.

> BTW: Who is "we"? Do you mean global data optimization is broken
> in gcc/binutils or just that no one at SGI is using it?

It's an ECOFF specific optimization that just has been forward ported into
the ELF world.  And what does this have to do with SGI anyway?

  Ralf

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux