binutils-gdb/ld/testsuite/ld-loongarch-elf/reloc_abs_with_shared.s
Lulu Cai 66156bae7a LoongArch: Add bad static relocation check and output more information to user
Absolute address symbols cannot be used with -shared.
We output more information to the user than just BFD_ASSETR.
2024-04-25 09:21:26 +08:00

9 lines
148 B
ArmAsm

.text
.globl s
.data
.type s, @object
s:
.word 123
.text
lu12i.w $r4,%abs_hi20(s)
addi.d $r4,$r4,%abs_lo12(s)