Armando Montanez | fe7ab3c | 2019-01-16 17:47:16 +0000 | [diff] [blame] | 1 | # RUN: yaml2obj %s > %t |
2 | # RUN: not llvm-elfabi --elf %t --emit-tbe=%t.tbe 2>&1 | FileCheck %s | ||||
3 | |||||
4 | !ELF | ||||
5 | FileHeader: | ||||
6 | Class: ELFCLASS64 | ||||
7 | Data: ELFDATA2LSB | ||||
8 | Type: ET_DYN | ||||
9 | Machine: EM_X86_64 | ||||
10 | Sections: | ||||
11 | - Name: .dynstr | ||||
12 | Type: SHT_STRTAB | ||||
13 | Flags: [ SHF_ALLOC ] | ||||
14 | Address: 0x0000 | ||||
15 | Content: "00" | ||||
16 | - Name: .dynamic | ||||
17 | Type: SHT_DYNAMIC | ||||
18 | Flags: [ SHF_ALLOC ] | ||||
19 | Address: 0x0008 | ||||
20 | AddressAlign: 8 | ||||
21 | Content: "0a00000000000000010000000000000000000000000000000000000000000000" | ||||
22 | # DT_STRSZ 1 (0x1) | ||||
23 | # DT_NULL 0x0 | ||||
24 | Size: 32 | ||||
25 | Link: .dynstr | ||||
26 | ProgramHeaders: | ||||
27 | - Type: PT_LOAD | ||||
28 | Flags: [ PF_R ] | ||||
29 | VAddr: 0x0000 | ||||
30 | PAddr: 0x0000 | ||||
31 | Align: 8 | ||||
32 | Sections: | ||||
33 | - Section: .dynstr | ||||
34 | - Section: .dynamic | ||||
35 | - Type: PT_DYNAMIC | ||||
36 | Flags: [ PF_X, PF_R ] | ||||
37 | VAddr: 0x0008 | ||||
38 | PAddr: 0x0008 | ||||
39 | Sections: | ||||
40 | - Section: .dynamic | ||||
41 | |||||
42 | # CHECK: Couldn't locate dynamic string table (no DT_STRTAB entry) |