1 @ RUN
: llvm-mc
%s
-triple
=armv7-unknown-linux-gnueabi
-filetype
=obj
-o
- \
2 @ RUN
: | llvm-readobj
-S
--sd
--sr > %t
3 @ RUN
: FileCheck
%s
< %t
4 @ RUN
: FileCheck
--check-prefix
=RELOC
%s
< %t
6 @ Check the
.personality directive.
10 @
-------------------------------------------------------------------------------
12 @
-------------------------------------------------------------------------------
20 .personality __gxx_personality_v0
27 @ CHECK
: SectionData
(
28 @ CHECK
: 0000: 1EFF2FE1 |
../.|
32 @ CHECK
: Name
: .ARM.extab.TEST1
33 @ CHECK
: SectionData
(
34 @ CHECK
: 0000: 00000000 B0B0B000 |
........|
39 @ RELOC
: Name
: .rel.ARM.extab.TEST1
40 @ RELOC
: Relocations
[
41 @ RELOC
: 0x0 R_ARM_PREL31 __gxx_personality_v0
0x0
46 @ CHECK
: Name
: .ARM.exidx.TEST1
47 @ CHECK
: SectionData
(
48 @ CHECK
: 0000: 00000000 00000000 |
........|
53 @ RELOC
: Name
: .rel.ARM.exidx.TEST1
54 @ RELOC
: Relocations
[
55 @ RELOC
: 0x0 R_ARM_PREL31
.TEST1 0x0
56 @ RELOC
: 0x4 R_ARM_PREL31
.ARM.extab.TEST1 0x0
61 @
-------------------------------------------------------------------------------
63 @
-------------------------------------------------------------------------------
71 .personality __gxx_personality_v0
72 @ The
.handlerdata directive is intentionally ignored. The .fnend @ directive should create the EXTAB entry and flush the unwind opcodes.
78 @ CHECK
: SectionData
(
79 @ CHECK
: 0000: 1EFF2FE1 |
../.|
83 @ CHECK
: Name
: .ARM.extab.TEST2
84 @ CHECK
: SectionData
(
85 @ CHECK
: 0000: 00000000 B0B0B000 |
........|
90 @ RELOC
: Name
: .rel.ARM.extab.TEST2
91 @ RELOC
: Relocations
[
92 @ RELOC
: 0x0 R_ARM_PREL31 __gxx_personality_v0
0x0
97 @ CHECK
: Name
: .ARM.exidx.TEST2
98 @ CHECK
: SectionData
(
99 @ CHECK
: 0000: 00000000 00000000 |
........|
104 @ RELOC
: Name
: .rel.ARM.exidx.TEST2
105 @ RELOC
: Relocations
[
106 @ RELOC
: 0x0 R_ARM_PREL31
.TEST2 0x0
107 @ RELOC
: 0x4 R_ARM_PREL31
.ARM.extab.TEST2 0x0