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: 0x0000 15# \0 b a z\0 16 Content: "0062617a00" 17 - Name: .dynamic 18 Type: SHT_DYNAMIC 19 Flags: [ SHF_ALLOC ] 20 Address: 0x0000000000000008 21 Link: .dynstr 22 AddressAlign: 0x0000000000000008 23 EntSize: 0x0000000000000010 24 Entries: 25 - Tag: DT_STRTAB 26 Value: 0x0000000000000000 27 - Tag: DT_NULL 28 Value: 0x0000000000000000 29ProgramHeaders: 30 - Type: PT_LOAD 31 Flags: [ PF_R ] 32 VAddr: 0x0000 33 Align: 8 34 FirstSec: .dynstr 35 LastSec: .dynamic 36 - Type: PT_DYNAMIC 37 Flags: [ PF_X, PF_R ] 38 VAddr: 0x0008 39 FirstSec: .dynamic 40 LastSec: .dynamic 41 42# CHECK: Couldn't determine dynamic string table size (no DT_STRSZ entry) 43