1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Demonstrating TLS relaxation behavior for -Bsymbolic linking.
# (i.e. no extra relaxation when using -Bsymbolic).
.global tlsdescvar
.global tlsdescvar2
.section .tbss,"awT",%nobits
.align 2
.type tlsdescvar, %object
.size tlsdescvar, 4
tlsdescvar:
.zero 4
.type tlsdescvar2, %object
.size tlsdescvar2, 4
tlsdescvar2:
.zero 4
.text
_test_tls_desc:
adrp x0, :tlsdesc:tlsdescvar
ldr x1, [x0, :tlsdesc_lo12:tlsdescvar]
add x0, x0, :tlsdesc_lo12:tlsdescvar
.tlsdesccall tlsdescvar
blr x1
_test_tls_desc2:
adrp x0, :gottprel:tlsdescvar2
ldr x0, [x0, #:gottprel_lo12:tlsdescvar2]
|