
Most tests are ported from AArch64. The relr-addend test is added to make sure the addend (link-time address) is correctly written into the relocated section. Doing so is not strictly needed for RELA, but strictly needed for RELR). Signed-off-by: Xi Ruoyao <xry111@xry111.site>
11 lines
372 B
Makefile
11 lines
372 B
Makefile
#ld: -shared -z pack-relative-relocs -T relr-relocs.ld
|
|
#objdump: -s -j.got -j.data
|
|
|
|
.*: file format elf64-loongarch
|
|
|
|
Contents of section \.got:
|
|
20000 [0-9a-f]+ [0-9a-f]+ 00003412 00000000 .*
|
|
20010 08003412 00000000 .*
|
|
Contents of section \.data:
|
|
12340000 14451100 00000000 10989101 00000000 .*
|
|
12340010 00003412 00000000 08003412 00000000 .*
|