aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/unwind-4.s
blob: 015311bbb065c74f78ca886accbe5febdb702eea (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
	.syntax unified
	.text
	@ out of line table entry
	.global _start
	.type _start, %function
_start:
	.fnstart
	.save {r4, lr}
	.vsave {d0}
	.vsave {d4}
	bl _before
	.fnend

	@ entry that can be merged
	.fnstart
	.save {r4, lr}
	bx lr
	.fnend

	@ Section that will be placed first
	.section .before, "xa"
	.type _before, %function
_before:
	.fnstart
	.save {r4, lr}
	bx lr
	.fnend

	@ section that will be placed last
	.section .after, "xa"
	.global __aeabi_unwind_cpp_pr0
	.type __aeabi_unwind_cpp_pr0, %function
__aeabi_unwind_cpp_pr0:
	.fnstart
	.save {r4, lr}
	bx lr
	.fnend
	@ final function is cantunwind, so output table size is smaller
	@ than sum of input sections
	.global __aeabi_unwind_cpp_pr1
	.type __aeabi_unwind_cpp_pr1, %function
__aeabi_unwind_cpp_pr1:
	.fnstart
	.cantunwind
	bx lr
	.fnend

	.section .far
	.word 0