Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-objdump / verneed-wrong-info.test
blobcf1c18e8159659f7636dc82df9f23bba32f84183
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-objdump -p %t 2>&1 | FileCheck %s
4 # We have a SHT_GNU_verneed section with a broken sh_info field
5 # that says the section contains more entries than it actually has.
7 # CHECK:      Version References:
8 # CHECK-NEXT:   required from dso.so.0:
9 # CHECK-NEXT:     0x000004d2 0x0a 03 v1
10 # CHECK-NEXT:     0x0000162e 0x0b 04 v2
11 # CHECK-NEXT:   required from dso.so.1:
12 # CHECK-NEXT:     0x000011d7 0x0c 02 v3
14 --- !ELF
15 FileHeader:
16   Class:           ELFCLASS64
17   Data:            ELFDATA2LSB
18   Type:            ET_EXEC
19   Machine:         EM_X86_64
20   Entry:           0x0000000000201000
21 Sections:
22   - Name:            .gnu.version_r
23     Type:            SHT_GNU_verneed
24     Flags:           [ SHF_ALLOC ]
25     Address:         0x0000000000200250
26     Link:            .dynstr
27     AddressAlign:    0x0000000000000004
28     Info:            0x0000000000009999
29     Dependencies:
30       - Version:         1
31         File:            dso.so.0
32         Entries:
33           - Name:            v1
34             Hash:            1234
35             Flags:           10
36             Other:           3
37           - Name:            v2
38             Hash:            5678
39             Flags:           11
40             Other:           4
41       - Version:         1
42         File:            dso.so.1
43         Entries:
44           - Name:            v3
45             Hash:            4567
46             Flags:           12
47             Other:           2
48 DynamicSymbols:
49   - Name:    f1
50     Binding: STB_GLOBAL