1 # RUN: yaml2obj %s -o %t
2 # RUN: not llvm-readelf --headers -S 2>&1 %t | FileCheck %s -DFILE=%t --check-prefix=GNU
3 # RUN: not llvm-readobj --headers -S 2>&1 %t | FileCheck %s -DFILE=%t --check-prefix=LLVM
6 # GNU: Section header string table index: 255
7 # GNU-NEXT: There are 3 section headers, starting at offset 0x58:
8 # GNU: Section Headers:
11 # GNU-NEXT: error: '[[FILE]]': section header string table index 255 does not exist
14 # LLVM: StringTableSectionIndex: 255
16 # LLVM-NEXT: Sections [
18 # LLVM-NEXT: error: '[[FILE]]': section header string table index 255 does not exist