aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/tls-gdesc-neg.s
blob: 78ec32f593679ba911c215b7ff76b85a47232a1f (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
	.text
	.arm
	.globl foo
	.type foo, %function
foo:
	ldr	r0, 1f
	b	2f
1:
	@ Negative addend for R_ARM_TLS_GOTDESC.
	.word	tlsdata(tlsdesc) + (. - 2f + 0)
2:
	blx	tlsdata(tlscall)

	.thumb
	.globl bar
	.type bar, %function
bar:
	ldr	r0, 1f
	b	2f
1:
	@ Negative addend for R_ARM_TLS_GOTDESC.
	.word	tlsdata(tlsdesc) + (. - 2f + 1)
2:
	blx	tlsdata(tlscall)

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