This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [patch] modify crt0.S for 64-bit address targets
- From: Eric Christopher <echristo at redhat dot com>
- To: cgd at broadcom dot com
- Cc: binutils at sources dot redhat dot com, newlib at sources dot redhat dot com
- Date: Wed, 06 Apr 2005 12:01:05 -0700
- Subject: Re: [patch] modify crt0.S for 64-bit address targets
- References: <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