From: Eric Christopher <echristo@redhat.com>
To: cgd@broadcom.com
Cc: binutils@sources.redhat.com, newlib@sources.redhat.com
Subject: Re: [patch] modify crt0.S for 64-bit address targets
Date: Wed, 06 Apr 2005 19:01:00 -0000 [thread overview]
Message-ID: <1112814065.5554.7.camel@localhost.localdomain> (raw)
In-Reply-To: <200504061851.LAA23569@mail-sj1-2.sj.broadcom.com>
On Wed, 2005-04-06 at 11:51 -0700, cgd@broadcom.com wrote:
> > Assuredly this is the case. I think the problem might be from using the
> > ori instead of addi for the address.
>
> Perhaps. For a 32-bit address, I'd expect the address generation to be
> simply lui/addiu, or similar. (in fact, for this, you only need the
> lui.)
>
Agreed.
> The only time i'd expect gas would be bothering with shifts at all
> is for 64-bit addresses. (but that's intuition speaking, rather than
> code examination.)
Technically this is a 64-bit address target (ABI_EABI and a processor
with 64-bit registers). For this particular address I think all you need
is the addi and the shift, but...
-eric
next prev parent reply other threads:[~2005-04-06 19:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-06 18:51 cgd
2005-04-06 19:01 ` Eric Christopher [this message]
[not found] <1112768205.5493.2.camel@localhost.localdomain>
[not found] ` <mailpost.1112768909.17118@news-sj1-1>
2005-04-06 6:49 ` cgd
2005-04-06 11:05 ` Maciej W. Rozycki
2005-04-06 11:22 ` Thiemo Seufer
2005-04-06 14:40 ` Maciej W. Rozycki
2005-04-06 18:37 ` Eric Christopher
2005-04-06 19:31 ` Paul Koning
2005-04-06 19:35 ` Ian Lance Taylor
2005-04-06 21:35 ` Eric Christopher
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=1112814065.5554.7.camel@localhost.localdomain \
--to=echristo@redhat.com \
--cc=binutils@sources.redhat.com \
--cc=cgd@broadcom.com \
--cc=newlib@sources.redhat.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).