aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/emit-relocs-301.s
blob: d17d4ce2680a33613ad8eb18c1537a401b9f73b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
	.text
	ldr	x1, .Lgot
	adr	x2, .Lgot
	add	x1, x2, x1

	movk	x0, #:gotoff_g0_nc:globala
	movk	x0, #:gotoff_g0_nc:globalb
	movk	x0, #:gotoff_g0_nc:globalc
	ldr	x0, [x1, x0]

.Lgot:
	.dword _GLOBAL_OFFSET_TABLE_ - .