Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Johannes Stezenbach <js@convergence.de>
To: Ralf Baechle <ralf@linux-mips.org>
Cc: Gilad Benjamini <yaelgilad@myrealbox.com>, linux-mips@linux-mips.org
Subject: Re: Static variables and "gp"
Date: Mon, 3 Mar 2003 13:54:17 +0100	[thread overview]
Message-ID: <20030303125417.GB23612@convergence.de> (raw)
In-Reply-To: <20030302121820.A30790@linux-mips.org>

On Sun, Mar 02, 2003 at 12:18:20PM +0100, Ralf Baechle wrote:
> On Sun, Mar 02, 2003 at 09:07:28AM +0000, Gilad Benjamini wrote:
> 
> > How can I force a specific static variable to be used by the "gp" register
> > rather than by a two-step load ?
> > Compiling a mips-linux using gcc.
> 
> That feature doesn't work in gcc for userspace code ...

It works with diet libc (http://dietlibc.org/).
You need a static, non-PIC libgcc.a which supports it, though,
which means a bit of gcc config hackery...

Regards,
Johannes

  reply	other threads:[~2003-03-03 12:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-02  9:07 Static variables and "gp" Gilad Benjamini
2003-03-02 11:18 ` Ralf Baechle
2003-03-03 12:54   ` Johannes Stezenbach [this message]
2003-03-04  1:14   ` JVM under Linux on MIPS Rajesh Palani
2003-03-04  7:54     ` Kevin D. Kissell
2003-03-04  7:54       ` Kevin D. Kissell
2003-03-04  8:13     ` TAKANO Ryousei
2003-03-04  8:59       ` Kevin D. Kissell
2003-03-04  8:59         ` Kevin D. Kissell
2003-03-04 10:09         ` TAKANO Ryousei
2003-03-04 18:06           ` Jun Sun
  -- strict thread matches above, loose matches on Subject: below --
2003-03-02 11:46 Static variables and "gp" Gilad Benjamini
2003-03-02 14:12 ` Ralf Baechle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030303125417.GB23612@convergence.de \
    --to=js@convergence.de \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.org \
    --cc=yaelgilad@myrealbox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox