1// REQUIRES: x86
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
5
6.section foo,"ax",@progbits
7 nop
8
9.text
10.globl _start
11_start:
12
13// There is no .eh_frame section,
14// therefore .eh_frame_hdr also not created.
15// NOHDR:       Sections [
16// NOHDR-NOT:    Name: .eh_frame
17// NOHDR-NOT:    Name: .eh_frame_hdr
18// NOHDR:      ProgramHeaders [
19// NOHDR-NOT:   PT_GNU_EH_FRAME
20