binutils-gdb/ld/testsuite/ld-loongarch-elf/relr-text.s
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
130 B
ArmAsm

# Test DT_RELR with DT_TEXTREL and R_LARCH_ALIGN.
.text
.p2align 5
.global _start
_start:
.global foo
.hidden foo
foo:
.quad foo