mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
3880820e34
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>
28 lines
381 B
ArmAsm
28 lines
381 B
ArmAsm
.text
|
|
.global _start
|
|
_start:
|
|
la.got $a0, sym_local
|
|
la.got $a1, sym_hidden
|
|
la.got $a2, sym_global
|
|
la.got $a3, sym_global_abs
|
|
la.got $a4, sym_weak_undef
|
|
la.got $a5, _DYNAMIC
|
|
|
|
sym_local:
|
|
nop
|
|
|
|
.global sym_hidden
|
|
.hidden sym_hidden
|
|
sym_hidden:
|
|
nop
|
|
|
|
.global sym_global
|
|
sym_global:
|
|
nop
|
|
|
|
.global sym_global_abs
|
|
.set sym_global_abs, 42
|
|
|
|
.global sym_weak_undef
|
|
.weak sym_weak_undef
|