Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / invalid / verdef-no-symtab.test
blobd32d6de7a6e54bade0d108b71a73c2e56eed7a0c
1 # RUN: yaml2obj %s -o %t
2 # RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s
4 ## When we have SHT_GNU_versym section, it is should be associated
5 ## with symbol table section.
6 --- !ELF
7 FileHeader:
8   Class:           ELFCLASS64
9   Data:            ELFDATA2LSB
10   Type:            ET_DYN
11   Machine:         EM_X86_64
12 Sections:
13   - Name:            .versym
14     Type:            SHT_GNU_versym
15     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
16     AddressAlign:    0x1
17     Entries:         [ 0 ]
19 # CHECK: SHT_GNU_versym should be associated with symbol table