Subject: Re: sparc64 xserver vs relocs
To: None <port-sparc64@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: port-sparc64
Date: 05/12/2005 22:26:24
On Thu, May 12, 2005 at 04:05:52AM +0400, Valeriy E. Ushakov wrote:
....
> and "bad" crosscompiled code looks like this:
> 
>     sethi   %hi(endtab), %i3
>     ld      [%i3+%lo(endtab)+4], %l2

To correct something I said last night....

For sparc (I don't have a sparc64 book!) sethi sets the top 22 bits
and the other instructions have a signed 13bit constant.

This means that the above code would be badly wrong if endtab were xxxffc.

	David

-- 
David Laight: david@l8s.co.uk