1 @ RUN
: llvm-mc
%s
-triple
=armv7-unknown-linux-gnueabi
-filetype
=obj
-o
- \
2 @ RUN
: | llvm-readobj
-S
--sd
--sr | FileCheck
%s
4 @ Check the
.cantunwind directive
6 @ When
a function contains
a .cantunwind directive, we should create an entry
7 @ in corresponding
.ARM.exidx, and its second word should be EXIDX_CANTUNWIND.
23 @
-------------------------------------------------------------------------------
25 @
-------------------------------------------------------------------------------
29 @ CHECK
: SectionData
(
30 @ CHECK
: 0000: 1EFF2FE1 |
../.|
35 @
-------------------------------------------------------------------------------
36 @ Check
.ARM.exidx section
37 @
-------------------------------------------------------------------------------
39 @ CHECK
: Name
: .ARM.exidx
40 @
-------------------------------------------------------------------------------
41 @ The first word should
be the offset to
.text.
42 @ The second word should
be EXIDX_CANTUNWIND
(01000000).
43 @
-------------------------------------------------------------------------------
44 @ CHECK
: SectionData
(
45 @ CHECK
: 0000: 00000000 01000000 |
........|
49 @ CHECK
: Relocations
[
50 @ CHECK
: 0x0 R_ARM_PREL31
.text 0x0