aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/protected-data.s
blob: 4878f05ef3ca4749a79350796bcedb70f835d89f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
	.data
	.protected	var
	.global	var
	.align	2
	.type	var, %object
	.size	var, 4
var:
	.word	1

	.text
	.align	2
	.global	getaddr
	.type	getaddr, %function
getaddr:
	adrp	x0, :got:var
	ldr	x0, [x0, #:got_lo12:var]
	ret
	.size	getaddr, .-getaddr