aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/emit-relocs-516.s
blob: b998adcec6e5e5c5222b4f4800c36393fe679a17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
	.global var
	.global dummy
	.text
test:
	ldr x1, .Lgot
	adr x2, .Lgot
	add x1, x1, x2

	movk x0, #:tlsgd_g0_nc:var
	movk x0, #:tlsgd_g0_nc:dummy
	add x0, x1, x0
	bl   __tls_get_addr
	nop

.Lgot: .xword _GLOBAL_OFFSET_TABLE_ - .