This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld problems


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]