Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-ifs / binary-read-soname.test
blobeea49e30b49220d34219ef2b9a56513d27d44c88
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-ifs --input-format=ELF --output-ifs=- %t | 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     Align:    8
40     FirstSec: .dynstr
41     LastSec:  .dynamic
42   - Type:     PT_DYNAMIC
43     Flags:    [ PF_X, PF_R ]
44     VAddr:    0x1018
45     FirstSec: .dynamic
46     LastSec:  .dynamic
48 # CHECK:      --- !ifs-v1
49 # CHECK-NEXT: IfsVersion: {{[1-9]\d*\.(0|([1-9]\d*))}}
50 # CHECK-NEXT: SoName: somelib.so{{$}}
51 # CHECK-NEXT: Target: { ObjectFormat: ELF, Arch: x86_64, Endianness: little, BitWidth: 64 }
52 # CHECK-NEXT: Symbols: []
53 # CHECK-NEXT: ...