[PATCH v2 2/6] LoongArch:opcodes: Add new reloc types.

Xi Ruoyao xry111@xry111.site
Thu Jul 21 07:51:50 GMT 2022
On Thu, 2022-07-21 at 14:02 +0800, liuzhensong wrote:

> 
> It seems default for addi.d/ld.d to access extreme address.
> Simple example of abs32:
> address range of abs32 :  0~0xffffffff
> sym address: 0xfffff800
> lui12.w $rd, 0xfffff
> ori $rd, $d, 0x800
> $rd is 0xfffff800
> Obviously, lu12i.w and addi.w/ld.w can not get address > 0xfffff7fc

Hmm... Wouldn't "addi.{w/d} $t0, $zero, -0x800" work for this?


-- 
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University


More information about the Binutils mailing list