From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25449 invoked by alias); 6 Apr 2005 11:22:52 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 25378 invoked from network); 6 Apr 2005 11:22:44 -0000 Received: from unknown (HELO mx02.qsc.de) (213.148.130.14) by sourceware.org with SMTP; 6 Apr 2005 11:22:44 -0000 Received: from port-195-158-169-58.dynamic.qsc.de ([195.158.169.58] helo=hattusa.textio) by mx02.qsc.de with esmtp (Exim 3.35 #1) id 1DJ8c0-0005kN-00; Wed, 06 Apr 2005 13:22:20 +0200 Received: from ths by hattusa.textio with local (Exim 4.50) id 1DJ8bz-000639-NM; Wed, 06 Apr 2005 13:22:19 +0200 Date: Wed, 06 Apr 2005 11:22:00 -0000 To: "Maciej W. Rozycki" Cc: cgd@broadcom.com, echristo@redhat.com, newlib@sources.redhat.com, binutils@sources.redhat.com Subject: Re: [patch] modify crt0.S for 64-bit address targets Message-ID: <20050406112219.GD27308@hattusa.textio> References: <1112768205.5493.2.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i From: Thiemo Seufer X-SW-Source: 2005-04/txt/msg00163.txt.bz2 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