From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21553 invoked by alias); 6 Apr 2005 19:01:34 -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 21279 invoked from network); 6 Apr 2005 19:01:19 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 6 Apr 2005 19:01:19 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j36J1Jvr001526; Wed, 6 Apr 2005 15:01:19 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j36J1CO14544; Wed, 6 Apr 2005 15:01:12 -0400 Received: from [10.4.24.189] (vpn26-1.sfbay.redhat.com [172.16.26.1]) by potter.sfbay.redhat.com (8.12.8/8.12.8) with ESMTP id j36J18YE023083; Wed, 6 Apr 2005 15:01:09 -0400 Subject: Re: [patch] modify crt0.S for 64-bit address targets From: Eric Christopher To: cgd@broadcom.com Cc: binutils@sources.redhat.com, newlib@sources.redhat.com In-Reply-To: <200504061851.LAA23569@mail-sj1-2.sj.broadcom.com> References: <200504061851.LAA23569@mail-sj1-2.sj.broadcom.com> Content-Type: text/plain Date: Wed, 06 Apr 2005 19:01:00 -0000 Message-Id: <1112814065.5554.7.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-04/txt/msg00172.txt.bz2 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