aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/tls-large-desc.s
blob: 424f67cf3aecc087437f733b7d2d371127b28fd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
	.global var
	.text
test:
	ldr x1, .Lgot
	adr x2, .Lgot
	add x18, x1, x2

	movz x0, #:tlsdesc_off_g1:var
	movk x0, #:tlsdesc_off_g0_nc:var
	.tlsdescldr var
	ldr x1, [x18, x0]
	.tlsdescadd var
	add x0, x18, x0
	.tlsdesccall var
	blr x1

.Lgot: .xword _GLOBAL_OFFSET_TABLE_ - .