[ARM] Cortex-M4 schedule additions
[llvm-complete.git] / test / tools / llvm-elfabi / binary-read-bad-vaddr.test
blobb9806e94fb9ccb39f73ddecab29b945b4c7bb9cd
1 # RUN: yaml2obj %s > %t
2 # RUN: not llvm-elfabi --elf %t --emit-tbe=%t.tbe 2>&1 | FileCheck %s
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:         0x0000000000001008
20     Link:            .dynstr
21     AddressAlign:    0x0000000000000008
22     EntSize:         0x0000000000000010
23     Entries:
24       - Tag:             DT_SONAME
25         Value:           0x0000000000000000
26       - Tag:             DT_STRSZ
27         Value:           0x0000000000000001
28       - Tag:             DT_STRTAB
29         Value:           0x0000000000000260 # Bad vaddr (no PT_LOAD for 0x0000 to 0x0FFF)
30       - Tag:             DT_SYMTAB
31         Value:           0x0000000000001000
32       - Tag:             DT_NULL
33         Value:           0x0000000000000000
34 ProgramHeaders:
35   - Type: PT_LOAD
36     Flags: [ PF_R ]
37     VAddr: 0x1000
38     PAddr: 0x1000
39     Align: 8
40     Sections:
41       - Section: .dynstr
42       - Section: .dynamic
43   - Type: PT_DYNAMIC
44     Flags: [ PF_X, PF_R ]
45     VAddr: 0x1008
46     PAddr: 0x1008
47     Sections:
48       - Section: .dynamic
50 # CHECK: virtual address is not in any segment: 0x260 when locating .dynstr section contents