linux-mips
[Top] [All Lists]

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

To: Johannes Stezenbach <js@convergence.de>, Hartvig Ekner <hartvige@mips.com>, linux-mips@oss.sgi.com
Subject: Re: Setting up of GP in static, non-PIC version of glibc?
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Mon, 25 Feb 2002 19:39:28 +0100
In-reply-to: <20020225183141.GA3560@convergence.de>; from js@convergence.de on Mon, Feb 25, 2002 at 07:31:41PM +0100
References: <200202251516.QAA22570@copsun18.mips.com> <20020225173433.B3680@dea.linux-mips.net> <20020225183141.GA3560@convergence.de>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
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

<Prev in Thread] Current Thread [Next in Thread>