From: "H . J . Lu" <hjl@lucon.org>
To: cgd@broadcom.com
Cc: ica2_ts@csv.ica.uni-stuttgart.de, binutils@sources.redhat.com
Subject: Re: [PATCH] Fix distinction of 32/64bit addresses in MIPS gas
Date: Thu, 06 Sep 2001 11:07:00 -0000 [thread overview]
Message-ID: <20010906110751.B32621@lucon.org> (raw)
In-Reply-To: <yov5n148dwu6.fsf@highland.sibyte.com>
On Thu, Sep 06, 2001 at 10:59:29AM -0700, cgd@broadcom.com wrote:
> "H . J . Lu" <hjl@lucon.org> writes:
> > > > What is the 32bit address of `foo'?
> > >
> > > bit 31 may or may not be set, depending on what exactly you're
> > > compiling.
> >
> > 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?
>
> Uh, the way you phrase that, i get the feeling that you think i'm
> silly for saying "yes." But I think that's probably only because you
I won't call it silly.
> structure the question unfavforably. I don't think I said anything
> about "an o32 binary," just a 32-bit ELF binary.
>
I just want to make sure we are on the same page.
>
> "mips64-elf" tools have, historically, generated:
>
> * 32-bit ELF
>
> * mips3-compatible code (including use of full 64-bit GPRs).
>
> Unless you say -mlong64, pointers and longs will be 32-bit, but you'll
> use full 64-bit GPRs for 'long long'.
>
> If you do say -mlong64, you'll get 64-bit pointers and longs, in your
> 64-bit GPRs.
>
> All with a 32-bit ELF format. (And, using R_MIPS_64 to represent
> pointers in the object files.)
>
> I don't really _know_ what ABI it uses. I had always thought of it as
> "o64", which in my mind was "o32 naively extended for 64-bit GPRs,"
> but really i don't know that that's correct. In fact, I don't really
> _care_ what ABI it uses. We understand the calling conventions well
> enough for embedded development use, which is where we're using it.
I think that is ok as long as R_MIPS_64 is not used for o32 binaries.
Maybe it is time to give a new BFD target for mips64-elf since it does
represent a different ABI which includes R_MIPS_64. R_MIPS_64 should be
forbidden for o32 binaries.
H.J.
next prev parent reply other threads:[~2001-09-06 11:07 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-24 18:26 Thiemo Seufer
2001-08-31 8:02 ` Richard Sandiford
2001-08-31 8:28 ` H . J . Lu
2001-08-31 9:17 ` Thiemo Seufer
2001-08-31 9:53 ` Geoff Keating
2001-08-31 10:31 ` Thiemo Seufer
[not found] ` <mailpost.999279120.2469@postal.sibyte.com>
2001-08-31 10:37 ` cgd
2001-08-31 11:46 ` Thiemo Seufer
2001-08-31 11:49 ` Ian Lance Taylor
2001-08-31 11:50 ` Ian Lance Taylor
[not found] ` <mailpost.999283589.5294@postal.sibyte.com>
2001-08-31 12:41 ` cgd
2001-08-31 14:31 ` H . J . Lu
2001-09-03 23:07 ` cgd
2001-09-06 10:50 ` H . J . Lu
2001-09-06 10:59 ` cgd
2001-09-06 11:07 ` H . J . Lu [this message]
2001-09-06 11:35 ` Thiemo Seufer
2001-09-06 11:39 ` cgd
2001-09-06 11:40 ` cgd
2001-09-08 12:03 ` Andrew Cagney
2001-09-08 16:38 ` Thiemo Seufer
2001-09-08 16:56 ` Thiemo Seufer
2001-09-06 11:57 ` Richard Sandiford
2001-09-06 20:53 ` Thiemo Seufer
2001-09-06 21:09 ` Thiemo Seufer
2001-09-06 21:12 ` Thiemo Seufer
2001-09-06 22:38 ` H . J . Lu
2001-09-06 23:11 ` Thiemo Seufer
2001-09-07 4:10 ` Richard Sandiford
2001-09-07 6:22 ` Thiemo Seufer
2001-09-07 7:02 ` Richard Sandiford
2001-09-07 8:11 ` Thiemo Seufer
2001-09-07 9:20 ` Richard Sandiford
2001-09-07 9:49 ` Thiemo Seufer
2001-09-06 11:14 ` Thiemo Seufer
2001-09-06 11:08 ` Thiemo Seufer
2001-08-31 18:22 ` Thiemo Seufer
2001-09-03 2:57 ` Richard Sandiford
2001-09-03 15:00 ` Thiemo Seufer
2001-08-31 14:49 ` Andrew Cagney
2001-08-31 15:00 ` H . J . Lu
2001-08-31 16:30 ` Eric Christopher
2001-08-31 16:41 ` Andrew Cagney
2001-08-31 16:46 ` H . J . Lu
2001-08-31 17:45 ` matthew green
2001-09-02 19:25 ` J Grant
2001-08-31 16:44 ` H . J . Lu
2001-08-31 17:42 ` matthew green
2001-08-31 19:06 ` H . J . Lu
2001-08-31 19:11 ` matthew green
[not found] ` <mailpost.999310274.17560@postal.sibyte.com>
2001-09-03 23:18 ` cgd
2001-09-06 11:00 ` H . J . Lu
2001-09-06 11:38 ` cgd
2001-09-06 12:09 ` H . J . Lu
2001-08-31 18:49 ` Thiemo Seufer
2001-08-31 17:35 ` matthew green
2001-08-31 19:05 ` H . J . Lu
2001-08-31 18:25 ` Thiemo Seufer
2001-08-31 20:46 ` Ian Lance Taylor
2001-08-31 21:04 ` Thiemo Seufer
2001-08-31 10:04 ` Richard Sandiford
2001-08-31 10:41 ` Thiemo Seufer
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=20010906110751.B32621@lucon.org \
--to=hjl@lucon.org \
--cc=binutils@sources.redhat.com \
--cc=cgd@broadcom.com \
--cc=ica2_ts@csv.ica.uni-stuttgart.de \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).