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: Thiemo Seufer <ths at networkno dot de>
- To: "Maciej W. Rozycki" <macro at linux-mips dot org>
- Cc: cgd at broadcom dot com, echristo at redhat dot com, newlib at sources dot redhat dot com,binutils at sources dot redhat dot com
- Date: Wed, 6 Apr 2005 13:22:19 +0200
- Subject: Re: [patch] modify crt0.S for 64-bit address targets
- References: <1112768205.5493.2.camel@localhost.localdomain> <mailpost.1112768909.17118@news-sj1-1> <yov53bu4767a.fsf@xl-sj1-02.sj.broadcom.com> <Pine.LNX.4.61L.0504061152001.14106@blysk.ds.pg.gda.pl>
Maciej W. Rozycki wrote:
> On Wed, 5 Apr 2005 cgd@broadcom.com wrote:
>
> > I'm probably confused/mistaken but... i thought 'la' was supposed to
> > generate a 32-bit address (and dla generate a 64-bit address)? Or
> > maybe they always generate the address of the ABI in use? I
> > forget... so much change.
>
> AFAIK, the only reason for both "dla" and "la" to exist is history and
> compatibility with existing code -- there is no need to encode the address
> size in the mnemonic as its already implied by the ABI in use.
This is incorrect for the (historic) no-ABI mode, as well as for e.g. a
.set mips3 ... .set mips0 sequence. la should load a sign-extended 32bit
value in that case.
Thiemo