[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / llvm-elfabi / binary-read-soname.test
blobef35b893dc019aa5bd7277e393ac212ce4111db0
1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-elfabi --elf %t --emit-tbe=- | 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\0 f o o\0
16     Content:         "0062617a00736f6d656c69622e736f00666f6f00"
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:           0x0000000000000014
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:      --- !tapi-tbe
52 # CHECK-NEXT: TbeVersion: {{[1-9]\d*\.(0|([1-9]\d*))}}
53 # CHECK-NEXT: SoName: somelib.so{{$}}
54 # CHECK-NEXT: Arch: x86_64
55 # CHECK-NEXT: Symbols: {}
56 # CHECK-NEXT: ...