Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / linkerscript / ttext-script.s
blob3e75d18f8d7708d6635fee8b6a4254fe341aaba9
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: echo "SECTIONS { .text 0x200000 : { *(.text) } }" > %t.script
4 # RUN: ld.lld -T %t.script -Ttext 0x100000 %t.o -o %t
5 # RUN: llvm-readelf -S %t | FileCheck %s
7 # CHECK: .text PROGBITS 0000000000100000
9 .global _start
10 _start:
11 nop