brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · 7d424ec Raw
51 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: not llvm-readelf --headers -S 2>&1 %t | FileCheck %s -DFILE=%t --check-prefix=GNU3# RUN: llvm-readobj --headers -S 2>&1 %t | FileCheck %s -DFILE=%t --check-prefix=LLVM4 5# GNU:      ELF Header:6# GNU:        Section header string table index: 2557# GNU-NEXT:   There are 3 section headers, starting at offset 0x58:8# GNU:      Section Headers:9# GNU-NEXT:  [Nr] Name         Type   Address          Off    Size   ES Flg Lk Inf Al10# GNU-NEXT: warning: '[[FILE]]': section header string table index 255 does not exist11# GNU-NEXT:  [ 0] <no-strings> NULL   0000000000000000 000000 000000 00      0   0  012# GNU-NEXT:  [ 1] <no-strings> STRTAB 0000000000000000 000040 000001 00      0   0  113# GNU-NEXT:  [ 2] <no-strings> STRTAB 0000000000000000 000041 000013 00      0   0  114# GNU-NEXT: Key to Flags:15# GNU:      Section to Segment mapping:16# GNU-NEXT:   Segment Sections...17# GNU-NEXT: error: '[[FILE]]': section header string table index 255 does not exist18 19# LLVM:      ElfHeader {20# LLVM:        StringTableSectionIndex: 25521# LLVM-NEXT: }22# LLVM-NEXT: Sections [23# LLVM-NEXT: Section {24# LLVM-NEXT:   Index: 025# LLVM-NEXT: warning: '[[FILE]]': unable to get the name of SHT_NULL section with index 0: section header string table index 255 does not exist26# LLVM-NEXT:   Name: <?> (0)27# LLVM-NEXT:   Type: SHT_NULL (0x0)28# LLVM-NEXT:   Flags [ (0x0)29# LLVM-NEXT:   ]30# LLVM-NEXT:   Address: 0x031# LLVM-NEXT:   Offset: 0x032# LLVM-NEXT:   Size: 033# LLVM-NEXT:   Link: 034# LLVM-NEXT:   Info: 035# LLVM-NEXT:   AddressAlignment: 036# LLVM-NEXT:   EntrySize: 037# LLVM-NEXT: }38# LLVM:      Index: 139# LLVM-NEXT: warning: '[[FILE]]': unable to get the name of SHT_STRTAB section with index 1: section header string table index 255 does not exist40# LLVM-NEXT: Name: <?> (11)41# LLVM:      Index: 242# LLVM-NEXT: warning: '[[FILE]]': unable to get the name of SHT_STRTAB section with index 2: section header string table index 255 does not exist43# LLVM-NEXT: Name: <?> (1)44 45--- !ELF46FileHeader:47  Class:     ELFCLASS6448  Data:      ELFDATA2LSB49  Type:      ET_REL50  EShStrNdx: 0xFF51