Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / x86-64-dyn-rel-error2.s
blob853e61faef68e57885448791efadb87e6e589aa4
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/shared.s -o %t2.o
4 // RUN: ld.lld %t2.o -shared -o %t2.so
5 // RUN: not ld.lld -shared %t.o %t2.so -o /dev/null 2>&1 | FileCheck %s
7 // CHECK: error: relocation R_X86_64_PC32 cannot be used against symbol 'zed'; recompile with -fPIC
8 // CHECK: >>> defined in {{.*}}.so
9 // CHECK: >>> referenced by {{.*}}.o:(.data+0x0)
11 .global _start
12 _start:
13 .data
14 .long zed - .