1 # Show that llvm-readobj can handle no program headers when --program-headers
2 # is requested, both for LLVM and GNU output.
4 # RUN: yaml2obj %s -o %t
5 # RUN: llvm-readobj %t --program-headers | FileCheck %s --check-prefix=LLVM
6 # RUN: llvm-readelf %t --program-headers | FileCheck %s --check-prefix=GNU
8 # LLVM: ProgramHeaders [
11 # GNU: There are 0 program headers
12 # GNU: Program Headers:
13 # GNU-NEXT: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
15 # GNU-NEXT: Section to Segment mapping:
16 # GNU-NEXT: Segment Sections...
17 # GNU-NEXT: None .symtab .strtab .shstrtab