This is the mail archive of the
mailing list for the binutils project.
Re: [PATCH] Fix distinction of 32/64bit addresses in MIPS gas
- To: cgd at broadcom dot com
- Subject: Re: [PATCH] Fix distinction of 32/64bit addresses in MIPS gas
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Thu, 6 Sep 2001 10:50:14 -0700
- Cc: ica2_ts at csv dot ica dot uni-stuttgart dot de, binutils at sources dot redhat dot com
- References: <20010831181657.A17249@rembrandt.csv.ica.uni-stuttgart.de> <200108311711.KAA19709@geoffk.org> <20010831193107.A10362@rembrandt.csv.ica.uni-stuttgart.de> <firstname.lastname@example.org> <email@example.com> <20010831204556.C17249@rembrandt.csv.ica.uni-stuttgart.de> <firstname.lastname@example.org> <email@example.com> <20010831143107.A4532@lucon.org> <firstname.lastname@example.org>
On Mon, Sep 03, 2001 at 11:07:50PM -0700, email@example.com wrote:
> "H . J . Lu" <firstname.lastname@example.org> writes:
> > > yes, i know that the pointer is going to be constrainted to being a
> > > sign-extended 32-bit value, but neither the compiler or any assembly
> > > code that uses it needs to know that (or should). As far as they're
> > > concerned, pointers are 64-bit values and they're loaded with ld, etc.
> > Why do you need R_MIPS_64 for that?
> Don't really know that that specific reloc is necessary... but that
> _is_ what the tools seem to generate, no?
> However no matter how you cut it, you still need a reloc that "32 bit
> address, plus 32 bits of sign extension."
> > What is the 32bit address of `foo'?
> bit 31 may or may not be set, depending on what exactly you're
Let me get this. Correct me if I am wrong. It seems that you want
to use 64bit registers in an o32 binary. Am I right?