binutils-gdb/ld/testsuite/ld-loongarch-elf/reloc_abs_with_shared.d
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

7 lines
178 B
Makefile

#source: reloc_abs_with_shared.s
#as:
#ld: -shared
#error: .*relocation R_LARCH_ABS_HI20 against `s` can not be used when making a shared object; recompile with -fPIC
#...
#pass