aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/tls-relax-large-gd-ie.s
blob: 8e0310d6b3f8caecdbfc2bdd3f310b6ee3942d80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
	.global var
	.section	.tdata,"awT",%progbits
var:
	.word	2

	.text
test:
	ldr	x1, .Lgot
	adr	x2, .Lgot
	add	x1, x2, x1

	movz	x0, #:tlsgd_g1:var
	movk	x0, #:tlsgd_g0_nc:var
	add	x0, x1, x0
	bl	__tls_get_addr
	nop
	ldr	w0, [x0]

.Lgot:
	.dword _GLOBAL_OFFSET_TABLE_ - .