aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/protections/bti-plt-so.s
blob: 45d827023f4ae903a54ea184d27489d4157ee8b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
	.global	foo
	.type	foo, %function
foo:
	sub	sp, sp, #16
	mov	w0, 9
	str	w0, [sp, 12]
	ldr	w0, [sp, 12]
	add	w0, w0, 4
	str	w0, [sp, 12]
	nop
	add	sp, sp, 16
	ret
	.size	foo, .-foo
	.global	bar
	.type	bar, %function
bar:
	sub	sp, sp, #16
	mov	w0, 9
	str	w0, [sp, 12]
	ldr	w0, [sp, 12]
	add	w0, w0, 4
	str	w0, [sp, 12]
	nop
	add	sp, sp, 16
	ret
	.size	bar, .-bar

.include "gnu-note-properties-selectable-merged.inc"