* elf32-spu.c (build_stub): Fix malloc under-allocation.
[binutils.git] / ld / testsuite / ld-arm / tls-descseq.s
blob9b2628d1519acdf99c5b6abc8eeebc416ac7c84d
1 .text
2 .arm
3 .globl foo
4 .type foo, %function
5 foo:
6 ldr r0, 1f
7 2:
8 .tlsdescseq lib_gd2
9 add r0, pc, r0
10 .tlsdescseq lib_gd2
11 ldr r1, [r0,#4]
12 .tlsdescseq lib_gd2
13 blx r1
14 nop
17 .word lib_gd2(tlsdesc) + (. - 2b)
19 .thumb
20 .globl bar
21 .type bar, %function
22 bar:
23 ldr r0, 1f
25 .tlsdescseq lib_gd2
26 add r0, pc
27 .tlsdescseq lib_gd2
28 ldr r1, [r0,#4]
29 .tlsdescseq lib_gd2
30 blx r1
31 nop
33 .p2align 2
35 .word lib_gd2(tlsdesc) + (. - 2b + 1)
37 .section .tdata,"awT"
38 .global lib_gd2
39 lib_gd2:
40 .space 4