From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5612 invoked by alias); 7 Aug 2003 13:15:01 -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 5588 invoked from network); 7 Aug 2003 13:15:00 -0000 Received: from unknown (HELO mta05ps.bigpond.com) (144.135.25.159) by sources.redhat.com with SMTP; 7 Aug 2003 13:15:00 -0000 Received: from bubble.local ([144.135.25.81]) by mta05ps.email.bigpond.com (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0HJ90026Y3GY0J@mta05ps.email.bigpond.com> for binutils@sources.redhat.com; Thu, 07 Aug 2003 23:14:58 +1000 (EST) Received: from cpe-144-136-188-60.sa.bigpond.net.au ([144.136.188.60]) by psmam05bpa.bigpond.com(MAM REL_3_3_2d 107/229886); Thu, 07 Aug 2003 23:14:58 +0000 Received: (qmail 25223 invoked by uid 179); Thu, 07 Aug 2003 13:14:58 +0000 Date: Thu, 07 Aug 2003 13:15:00 -0000 From: Alan Modra Subject: Re: ld problems In-reply-to: To: "Hylla, Kai" Cc: binutils@sources.redhat.com Mail-followup-to: "Hylla, Kai" , binutils@sources.redhat.com Message-id: <20030807131458.GK27145@bubble.sa.bigpond.net.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4i References: X-SW-Source: 2003-08/txt/msg00108.txt.bz2 On Thu, Aug 07, 2003 at 02:34:44PM +0200, Hylla, Kai wrote: > I have a problem with the ld. It seems that the ld doesn't relocate the > addresses correct. If I try to branch absolut (using ba) to an address > between 0x0200_0000 and 0xFE00_0000 it calculates the wrong value. The > calcultated value is 0xFE00_000 to high. If I try to use the correct > value as an constant (i.e. ba 0x02400238) I get an error: > > Error: operand out of range (37757824 not between -33554432 and > 33554431) Well, it _is_ out of range. ba can only reach addresses in the range 0xfe000000 to 0x01fffffc. Check your hardware manual. -- Alan Modra IBM OzLabs - Linux Technology Centre