Upload Tizen:Base source
[external/binutils.git] / ld / testsuite / ld-arm / tls-gdesc.s
1         .text
2         .arm
3         .globl foo
4         .type foo, %function
5 foo:
6         ldr     r0,1f
7 2:
8         blx     lib_gd2(tlscall) 
9         nop
10
11 1:
12         .word   lib_gd2(tlsdesc) + (. - 2b)
13
14         .thumb
15         .globl bar
16         .type bar, %function
17 bar:
18         ldr     r0,1f
19 2:
20         blx     lib_gd2(tlscall) 
21         nop
22
23         .p2align 2
24 1:
25         .word   lib_gd2(tlsdesc) + (. - 2b + 1)
26
27         ldr     r0,1f
28 2:
29         blx     r0(tlscall) 
30         nop
31
32         .p2align 2
33 1:
34         .word   r0(tlsdesc) + (. - 2b + 1)
35
36         .section .tdata,"awT"
37         .global lib_gd2
38 lib_gd2:
39         .space  4
40         .globl r0
41 r0:     .space 4