binutils-gdb/ld/testsuite/ld-loongarch-elf/relr-addend.d
Xi Ruoyao 3880820e34 LoongArch: Add DT_RELR tests
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>
2024-07-05 12:11:11 +08:00

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 .*