2 // RUN
: llvm-mc
-filetype
=obj
-triple
=x86_64-pc-linux
%s
-o
%t.o
3 // RUN
: ld.lld
--eh-frame-hdr
%t.o
-o
%t
4 // RUN
: llvm-readobj
-S
-l %t | FileCheck
%s
--check-prefix
=NOHDR
6 .section foo,"ax",@progbits
13 // There is no
.eh_frame section,
14 // therefore
.eh_frame_hdr also not created.
16 // NOHDR-
NOT: Name
: .eh_frame
17 // NOHDR-
NOT: Name
: .eh_frame_hdr
18 // NOHDR
: ProgramHeaders
[
19 // NOHDR-
NOT: PT_GNU_EH_FRAME