[lit] Add argument check: --timeout must be non-negative integer
[llvm-core.git] / test / tools / llvm-elfabi / binary-read-no-dt-strsz.test
blob99e06b2ca87b2a79dd5efaad441135672caa80c5
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:         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
29 ProgramHeaders:
30   - Type: PT_LOAD
31     Flags: [ PF_R ]
32     VAddr: 0x0000
33     PAddr: 0x0000
34     Align: 8
35     Sections:
36       - Section: .dynstr
37       - Section: .dynamic
38   - Type: PT_DYNAMIC
39     Flags: [ PF_X, PF_R ]
40     VAddr: 0x0008
41     PAddr: 0x0008
42     Sections:
43       - Section: .dynamic
45 # CHECK: Couldn't determine dynamic string table size (no DT_STRSZ entry)