aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/gc-unwind.s
blob: c5326c28651a29717ee33e6d13b8a56719eaeb44 (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
@ Test -gc-sections and unwinding tables.  .data.eh should be pulled in
@ via the EH tables, .data.foo should not.
.text
.global _start
.fnstart
_start:
bx lr
.personality my_pr
.handlerdata
.word 0
.fnend

.section .data.foo
my_foo:
.word 0x11111111

.section .text.foo
.fnstart
foo:
bx lr
.personality my_pr
.handlerdata
.word my_foo
.fnend

.section .data.eh
my_eh:
.word 0x22222222

.section .text.eh
.fnstart
my_pr:
bx lr
.personality my_pr
.handlerdata
.word my_eh
.fnend