Commit | Line | Data |
---|---|---|
ba93b8ac | 1 | .text |
0855e32b NS |
2 | .arm |
3 | .globl arm_fn | |
4 | .type arm_fn, %function | |
5 | arm_fn: | |
6 | 1: | |
7 | .tlsdescseq af | |
ba93b8ac | 8 | nop |
0855e32b NS |
9 | ldr r0, 1f |
10 | 2: blx ae(tlscall) | |
ba93b8ac | 11 | nop |
ba93b8ac | 12 | |
0855e32b NS |
13 | .arm_pool: |
14 | .word aa(tlsgd) + (. - 1b - 8) | |
15 | .word ab(tlsldm) + (. - 1b- 8) | |
16 | .word ac(gottpoff) + (. - 1b - 8) | |
17 | .word ad(tpoff) | |
18 | 1: .word ae(tlsdesc) + (. - 2b) | |
19 | ||
20 | .thumb | |
21 | .globl thumb_fn | |
22 | .type thumb_fn, %function | |
23 | thumb_fn: | |
24 | nop | |
25 | 1: | |
26 | .tlsdescseq tf | |
27 | nop | |
28 | ldr r0, 1f | |
29 | 2: blx te(tlscall) | |
30 | nop | |
31 | ||
32 | .p2align 2 | |
ba93b8ac | 33 | .Lpool: |
0855e32b NS |
34 | .word ta(tlsgd) + (. - 1b - 8) |
35 | .word tb(tlsldm) + (. - 1b - 8) | |
36 | .word tc(gottpoff) + (. - 1b - 8) | |
37 | .word td(tpoff) | |
38 | 1: .word te(tlsdesc) + (. - 2b + 1) | |
75c11999 NC |
39 | |
40 | @ PR 18481 | |
41 | .text | |
42 | foo: | |
43 | .word tbase(tpoff)-12 | |
44 | .word tbase(tpoff)-8 | |
45 | .word tbase(tpoff)-4 | |
46 | .word tbase(tpoff)+0 | |
47 | .word tbase(tpoff)+4 | |
48 | .word tbase(tpoff)+8 | |
49 | .word tbase(tpoff)+12 | |
50 | .word tbase(tpoff) | |
51 | ||
52 | .section .tdata,"awT",%progbits | |
53 | tbase = . + 12 | |
54 | .word -12 | |
55 | .word -8 | |
56 | .word -4 | |
57 | .word 0 | |
58 | .word 4 | |
59 | .word 8 | |
60 | .word 12 | |
61 | .word 0 |