Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / sectionstart-noallochdr.s
blob9b9cac257e5c0bc816c58a6892062008ea7883f8
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: ld.lld %t.o --section-start .data=0x20 \
4 # RUN: --section-start .bss=0x30 --section-start .text=0x10 -o %t1
5 # RUN: llvm-objdump --section-headers %t1 | FileCheck %s
7 # CHECK: Sections:
8 # CHECK-NEXT: Idx Name Size VMA Type
9 # CHECK-NEXT: 0 00000000 0000000000000000
10 # CHECK-NEXT: 1 .text 00000001 0000000000000010 TEXT
11 # CHECK-NEXT: 2 .data 00000004 0000000000000020 DATA
12 # CHECK-NEXT: 3 .bss 00000004 0000000000000030 BSS
14 .text
15 .globl _start
16 _start:
17 nop
19 .data
20 .long 0
22 .bss
23 .zero 4