Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-aarch64 / gc-relocs-tlsdesc.s
blob413c51307546b78659c8a7423f765f9d8568f14c
1 .global tlsdescvar
2 .section .tbss,"awT",%nobits
3 .align 2
4 .type tlsdescvar, %object
5 .size tlsdescvar, 4
6 tlsdescvar:
7 .zero 4
9 .align 2
10 .type l_tlsdescvar, %object
11 .size l_tlsdescvar, 4
12 l_tlsdescvar:
13 .zero 4
14 .text
15 _test_tls_desc:
17 // R_AARCH64_TLSDESC_ADR_PAGE tlsdescvar
18 adrp x0, :tlsdesc:tlsdescvar
19 // R_AARCH64_TLSDESC_LD64_LO12 tlsdescvar
20 ldr x1, [x0, :tlsdesc_lo12:tlsdescvar]
21 // R_AARCH64_TLSDESC_ADD_LO12 tlsdescvar
22 add x0, x0, :tlsdesc_lo12:tlsdescvar
23 // R_AARCH64_TLSDESC_CALL tlsdescvar
24 .tlsdesccall tlsdescvar
25 blr x1
27 _test_tls_desc_local:
29 // R_AARCH64_TLSDESC_ADR_PAGE l_tlsdescvar
30 adrp x0, :tlsdesc:l_tlsdescvar
31 // R_AARCH64_TLSDESC_LD64_LO12 l_tlsdescvar
32 ldr x1, [x0, :tlsdesc_lo12:l_tlsdescvar]
33 // R_AARCH64_TLSDESC_ADD_LO12 l_tlsdescvar
34 add x0, x0, :tlsdesc_lo12:l_tlsdescvar
35 // R_AARCH64_TLSDESC_CALL l_tlsdescvar
36 .tlsdesccall l_tlsdescvar
37 blr x1