aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-tic6x/unwind-4.s
blob: 83f3d0d78d6b0c933a02eac551f874afb6ac7827 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
	.cfi_sections .c6xabi.exidx
	.text
	# out of line table entry
	.global _start
	.type _start, %function
_start:
	.cfi_startproc
	.cfi_offset B3, 0
	.cfi_def_cfa_offset 8
	nop
	.p2align 6
	.cfi_endproc
	.personalityindex 3
	.handlerdata
	.word 0
	.endp

	# entry that can be merged
	.cfi_startproc
	.cfi_offset B3, 0
	.cfi_def_cfa_offset 8
	nop
	.p2align 6
	.cfi_endproc
	.personalityindex 3
	.endp

	# Section that will be placed first
	.section .before, "xa"
	.type _before, %function
_before:
	.cfi_startproc
	.cfi_offset B3, 0
	.cfi_def_cfa_offset 8
	nop
	.p2align 6
	.cfi_endproc
	.personalityindex 3
	.endp

	# section that will be placed last
	.section .after, "xa"
	.global __c6xabi_unwind_cpp_pr3
	.type __c6xabi_unwind_cpp_pr3, %function
__c6xabi_unwind_cpp_pr3:
	# entry that can be merged
	.cfi_startproc
	.cfi_offset B3, 0
	.cfi_def_cfa_offset 8
	nop
	.cfi_endproc
	.personalityindex 3
	.endp

	# final function is cantunwind, so output table size is smaller
	# than sum of input sections
	.global foo
	.type foo, %function
foo:
	.cfi_startproc
	nop
	.p2align 6
	.cfi_endproc
	.cantunwind
	.endp

	.section .far
	.word 0