* elf32-spu.c (build_stub): Fix malloc under-allocation.
[binutils.git] / ld / testsuite / ld-arm / tls-gdesc.s
blob482ee2966a817f32e538ccb697a5f7c13efa1e10
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
12 .word lib_gd2(tlsdesc) + (. - 2b)
14 .thumb
15 .globl bar
16 .type bar, %function
17 bar:
18 ldr r0,1f
20 blx lib_gd2(tlscall)
21 nop
23 .p2align 2
25 .word lib_gd2(tlsdesc) + (. - 2b + 1)
27 ldr r0,1f
29 blx r0(tlscall)
30 nop
32 .p2align 2
34 .word r0(tlsdesc) + (. - 2b + 1)
36 .section .tdata,"awT"
37 .global lib_gd2
38 lib_gd2:
39 .space 4
40 .globl r0
41 r0: .space 4