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: 0x1000 |
| 15 | Content: "00" |
| 16 | - Name: .dynamic |
| 17 | Type: SHT_DYNAMIC |
| 18 | Flags: [ SHF_ALLOC ] |
| 19 | Address: 0x1008 |
| 20 | AddressAlign: 8 |
| 21 | Content: "0e0000000000000000000000000000000a0000000000000001000000000000000500000000000000600200000000000000000000000000000000000000000000" |
| 22 | # DT_SONAME 0 |
| 23 | # DT_STRSZ 1 |
| 24 | # DT_STRTAB 0x0260 # Bad vaddr (no PT_LOAD for 0x0000 to 0x0FFF) |
| 25 | # DT_NULL 0x0 |
| 26 | Size: 64 |
| 27 | Link: .dynstr |
| 28 | ProgramHeaders: |
| 29 | - Type: PT_LOAD |
| 30 | Flags: [ PF_R ] |
| 31 | VAddr: 0x1000 |
| 32 | PAddr: 0x1000 |
| 33 | Align: 8 |
| 34 | Sections: |
| 35 | - Section: .dynstr |
| 36 | - Section: .dynamic |
| 37 | - Type: PT_DYNAMIC |
| 38 | Flags: [ PF_X, PF_R ] |
| 39 | VAddr: 0x1008 |
| 40 | PAddr: 0x1008 |
| 41 | Sections: |
| 42 | - Section: .dynamic |
| 43 | |
| 44 | # CHECK: Virtual address is not in any segment when locating .dynstr section contents |