aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/tls-descseq.s
blob: 9b2628d1519acdf99c5b6abc8eeebc416ac7c84d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
	.text
	.arm
	.globl foo
	.type foo, %function
foo:
	ldr	r0, 1f
2:
.tlsdescseq lib_gd2
	add	r0, pc, r0
.tlsdescseq lib_gd2
	ldr	r1, [r0,#4]
.tlsdescseq lib_gd2
	blx	r1
	nop

1:
	.word	lib_gd2(tlsdesc) + (. - 2b)

	.thumb
	.globl bar
	.type bar, %function
bar:
	ldr	r0, 1f
2:
.tlsdescseq lib_gd2
	add	r0, pc
.tlsdescseq lib_gd2
	ldr	r1, [r0,#4]
.tlsdescseq lib_gd2
	blx	r1
	nop

	.p2align 2
1:
	.word	lib_gd2(tlsdesc) + (. - 2b + 1)

	.section .tdata,"awT"
	.global lib_gd2
lib_gd2:
	.space	4