[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / llvm-elfabi / binary-read-soname-no-null.test
blob30aa6794298d9a5d2f86ee12ce12af97d8a1c48f
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 #                     \0 b a z\0 s o m e l i b . s o z z z
16     Content:         "0062617a00736f6d656c69622e736f7a7a7a"
17   - Name:            .dynamic
18     Type:            SHT_DYNAMIC
19     Flags:           [ SHF_ALLOC ]
20     Address:         0x0000000000001018
21     Link:            .dynstr
22     AddressAlign:    0x0000000000000008
23     EntSize:         0x0000000000000010
24     Entries:
25       - Tag:             DT_SONAME
26         Value:           0x0000000000000005
27       - Tag:             DT_STRSZ
28         Value:           0x000000000000000F
29       - Tag:             DT_STRTAB
30         Value:           0x0000000000001000
31       - Tag:             DT_SYMTAB
32         Value:           0x0000000000001000
33       - Tag:             DT_NULL
34         Value:           0x0000000000000000
35 ProgramHeaders:
36   - Type: PT_LOAD
37     Flags: [ PF_R ]
38     VAddr: 0x1000
39     PAddr: 0x1000
40     Align: 8
41     Sections:
42       - Section: .dynstr
43       - Section: .dynamic
44   - Type: PT_DYNAMIC
45     Flags: [ PF_X, PF_R ]
46     VAddr: 0x1018
47     PAddr: 0x1018
48     Sections:
49       - Section: .dynamic
51 # CHECK: String overran bounds of string table (no null terminator) when reading DT_SONAME