[patch] modify crt0.S for 64-bit address targets

Thiemo Seufer ths@networkno.de
Wed Apr 6 11:23:00 GMT 2005

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.


More information about the Newlib mailing list