aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/tls-longplt-lib.s
blob: 8cdfe273d4bf91a2c7ef44f909b293c52480d0bd (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
42
43
44
45
46
47
48
49
50
51
52
	.syntax unified
	.arch armv6t2
	.text
text:
	.arm
	ldr	r0,1f
2:	blx	loc(tlscall)
	nop
	.p2align 2
1:	.word	loc(tlsdesc) + (. - 2b)

	.thumb
	ldr	r0,1f
2:	blx	loc(tlscall)
	nop
	.p2align 2
1:	.word	loc(tlsdesc) + (. - 2b + 1)

	.section ".foo","ax"
foo:
	.arm
	ldr	r0,1f
2:	blx	loc(tlscall)
	nop
	.p2align 2
1:	.word	loc(tlsdesc) + (. - 2b)

	.arm
	ldr	r0,1f
2:	blx	glob(tlscall)
	nop
	.p2align 2
1:	.word	glob(tlsdesc) + (. - 2b)

	.thumb
	ldr	r0,1f
2:	blx	loc(tlscall)
	nop
	.p2align 2
1:	.word	loc(tlsdesc) + (. - 2b + 1)

	.section .tdata,"awT"
	.type	loc, %object
loc:	.space	4

	@ glob1 and glob2 used by tls-longplt
	.type	glob1, %object
	.globl	glob1
glob1:	.space	4
	.type	glob2, %object
	.globl	glob2
glob2:	.space	4