Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / ttext-segment.s
blob4d7d6905e853a1bf5a44072f15b2c6105ad3c242
1 # REQUIRES: x86
2 ## Check that we emit an error for -Ttext-segment.
4 # RUN: llvm-mc -filetype=obj -triple=x86_64 /dev/null -o %t.o
5 # RUN: not ld.lld %t.o -Ttext-segment=0x100000 -o /dev/null 2>&1 | FileCheck %s
6 # RUN: not ld.lld %t.o -Ttext-segment 0x100000 -o /dev/null 2>&1 | FileCheck %s
8 # CHECK: error: -Ttext-segment is not supported. Use --image-base if you intend to set the base address