Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / shf-info-link.test
blobc5ff02769ea9358b3ba0e7675eaaec103c343e09
1 # RUN: yaml2obj %s -o %t.o
2 # RUN: yaml2obj %S/Inputs/shf-info-link.test  -o %t2.o
3 # RUN: ld.lld %t.o %t2.o -o %t3.o -r
4 # RUN: llvm-readobj -S %t3.o | FileCheck %s
6 # CHECK-NOT: Name: .rela.text
7 # CHECK:     Name: .rela.text
8 # CHECK-NOT: Name: .rela.text
11 --- !ELF
12 FileHeader:
13   Class:           ELFCLASS64
14   Data:            ELFDATA2LSB
15   Type:            ET_REL
16   Machine:         EM_X86_64
17 Sections:
18   - Name:            .text
19     Type:            SHT_PROGBITS
20     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
21   - Name:            .rela.text
22     Type:            SHT_RELA
23     Flags:           [ SHF_INFO_LINK ]
24     Link:            .symtab
25     Info:            .text
26     Relocations:
27       - Symbol:          foo
28         Type:            R_X86_64_64
29 Symbols:
30   - Name:           foo
31     Binding:        STB_GLOBAL