aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/gc-relocs-tlsie.s
blob: e647b896df01c5b15a4ae4093c85d4f01fcfccc9 (plain)
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
28
29
        .global tlsievar
        .section        .tbss,"awT",%nobits
        .align  2
        .type   tlsievar, %object
        .size   tlsievar, 4
tlsievar:
        .zero   4

       .align  2
        .type   l_tlsievar, %object
        .size   l_tlsievar, 4
l_tlsievar:
        .zero   4

.text
_test_tls_IE:

        // R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 tlsievar
        adrp x0, :gottprel:tlsievar
        // R_AARCH64_TLSIE_GOTTPREL_LO12_NC    tlsievar
        ldr  x0, [x0, :gottprel_lo12:tlsievar]

_test_tls_IE_local:

        // R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 l_tlsievar
        adrp x0, :gottprel:l_tlsievar
        // R_AARCH64_TLSIE_GOTTPREL_LO12_NC    l_tlsievar
        ldr  x0, [x0, :gottprel_lo12:l_tlsievar]