Commit | Line | Data |
---|---|---|
b627f562 SN |
1 | .text |
2 | .arm | |
3 | .globl foo | |
4 | .type foo, %function | |
5 | foo: | |
6 | ldr r0, 1f | |
7 | b 2f | |
8 | 1: | |
9 | @ Negative addend for R_ARM_TLS_GOTDESC. | |
10 | .word tlsdata(tlsdesc) + (. - 2f + 0) | |
11 | 2: | |
12 | blx tlsdata(tlscall) | |
13 | ||
14 | .thumb | |
15 | .globl bar | |
16 | .type bar, %function | |
17 | bar: | |
18 | ldr r0, 1f | |
19 | b 2f | |
20 | 1: | |
21 | @ Negative addend for R_ARM_TLS_GOTDESC. | |
22 | .word tlsdata(tlsdesc) + (. - 2f + 1) | |
23 | 2: | |
24 | blx tlsdata(tlscall) | |
25 | ||
26 | .section .tdata,"awT" | |
27 | .global tlsdata | |
28 | tlsdata: | |
29 | .space 4 |