Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / linkorder-forward-ref.test
blob2e00516001fc2b369c028673ef56f3538c3fd5d4
1 # REQUIRES: x86
2 # RUN: yaml2obj %s -o %t.o
3 # RUN: ld.lld %t.o -o %t
4 # RUN: llvm-readelf -S %t | FileCheck %s
6 ## Test that we accept forward sh_link references.
8 # CHECK: .linkorder
9 # CHECK: .text
11 --- !ELF
12 FileHeader:
13   Class:           ELFCLASS64
14   Data:            ELFDATA2LSB
15   Type:            ET_REL
16   Machine:         EM_X86_64
17 Sections:
18   - Name:          .linkorder
19     Type:          SHT_PROGBITS
20     Flags:         [ SHF_LINK_ORDER ]
21     Link:          2
22   - Name:          .text
23     Type:          SHT_PROGBITS