1 # Show that llvm-readobj can handle ELF files where the section header table has
2 # been stripped, both for GNU and LLVM style output.
4 # RUN: yaml2obj %s -o %t.raw
5 # RUN: llvm-objcopy --strip-sections %t.raw %t.o
6 # RUN: llvm-readobj --file-headers --section-headers --symbols %t.o | FileCheck %s --check-prefix=LLVM
7 # RUN: llvm-readelf --file-headers --section-headers --symbols %t.o | FileCheck %s --check-prefix=GNU --allow-empty
9 # LLVM: SectionHeaderCount: 0
10 # LLVM: StringTableSectionIndex: 0
13 # LLVM-NEXT: Symbols [
16 # GNU: Number of section headers: 0
17 # GNU: Section header string table index: 0
18 # GNU: There are 0 section headers
19 # GNU-NOT: Symbol table '{{.*}}' contains {{.*}} entries