1# REQUIRES: x86 2## Check that we emit an error for -Ttext-segment. 3 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 7 8# CHECK: error: -Ttext-segment is not supported. Use --image-base if you intend to set the base address 9