Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / COFF / secidx-absolute.s
blob7d3b4b27fc4bb84be9bc130a8bf667455f2db2a1
1 # REQUIRES: x86
2 # RUN: llvm-mc %s -filetype=obj -triple=x86_64-windows-msvc -o %t.obj
3 # RUN: lld-link -entry:main -nodefaultlib %t.obj -out:%t.exe
4 # RUN: llvm-readobj %t.exe --sections --section-data | FileCheck %s
6 # Section relocations against absolute symbols resolve to the last real output
7 # section index plus one.
9 .text
10 .global main
11 main:
12 ret
14 .section .rdata,"dr"
15 .secidx __guard_fids_table
17 # CHECK: Sections [
18 # CHECK: Section {
19 # CHECK: Number: 1
20 # CHECK: Name: .text (2E 74 65 78 74 00 00 00)
21 # CHECK: VirtualSize: 0x1
22 # CHECK: SectionData (
23 # CHECK: 0000: C3 |.|
24 # CHECK: )
25 # CHECK: }
26 # CHECK: Section {
27 # CHECK: Number: 2
28 # CHECK: Name: .rdata (2E 72 64 61 74 61 00 00)
29 # CHECK: SectionData (
30 # CHECK: 0000: 0300 |..|
31 # CHECK: )
32 # CHECK: }
33 # CHECK-NOT: Section
34 # CHECK: ]