Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-aarch64 / relr-got.s
blob44e44633eb4447b3fcd57b4d6a6eb13dc5f611d6
1 // Test GOT relocations with DT_RELR.
3 .text
4 .global _start
5 _start:
6 adrp x0, :got:sym_local
7 ldr x0, [x0, :got_lo12:sym_local]
9 adrp x0, :got:sym_hidden
10 ldr x0, [x0, :got_lo12:sym_hidden]
12 adrp x0, :got:sym_global
13 ldr x0, [x0, :got_lo12:sym_global]
15 adrp x0, :got:sym_global
16 ldr x0, [x0, :got_lo12:sym_global_abs]
18 adrp x0, :got:sym_weak_undef
19 ldr x0, [x0, :got_lo12:sym_weak_undef]
21 adrp x0, :got:_DYNAMIC
22 ldr x0, [x0, :got_lo12:_DYNAMIC]
24 sym_local:
25 nop
27 .global sym_hidden
28 .hidden sym_hidden
29 sym_hidden:
30 nop
32 .global sym_global
33 sym_global:
34 nop
36 .global sym_global_abs
37 .set sym_global_abs, 42
39 .global sym_weak_undef
40 .weak sym_weak_undef