1# RUN: yaml2obj %s -o %t 2# RUN: not llvm-elfabi --elf %t --emit-tbe=%t.tbe 2>&1 | FileCheck %s 3 4!ELF 5FileHeader: 6 Class: ELFCLASS64 7 Data: ELFDATA2LSB 8 Type: ET_DYN 9 Machine: EM_X86_64 10Sections: 11 - Name: .dynstr 12 Type: SHT_STRTAB 13 Flags: [ SHF_ALLOC ] 14 Address: 0x1000 15# \0 b a z\0 s o m e l i b . s o z z z 16 Content: "0062617a00736f6d656c69622e736f7a7a7a" 17 - Name: .dynamic 18 Type: SHT_DYNAMIC 19 Flags: [ SHF_ALLOC ] 20 Address: 0x0000000000001018 21 Link: .dynstr 22 AddressAlign: 0x0000000000000008 23 EntSize: 0x0000000000000010 24 Entries: 25 - Tag: DT_SONAME 26 Value: 0x0000000000000005 27 - Tag: DT_STRSZ 28 Value: 0x000000000000000F 29 - Tag: DT_STRTAB 30 Value: 0x0000000000001000 31 - Tag: DT_SYMTAB 32 Value: 0x0000000000001000 33 - Tag: DT_NULL 34 Value: 0x0000000000000000 35ProgramHeaders: 36 - Type: PT_LOAD 37 Flags: [ PF_R ] 38 VAddr: 0x1000 39 Align: 8 40 FirstSec: .dynstr 41 LastSec: .dynamic 42 - Type: PT_DYNAMIC 43 Flags: [ PF_X, PF_R ] 44 VAddr: 0x1018 45 FirstSec: .dynamic 46 LastSec: .dynamic 47 48# CHECK: String overran bounds of string table (no null terminator) when reading DT_SONAME 49