summaryrefslogtreecommitdiff
path: root/test/ELF/x86-64-dyn-rel-error.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/x86-64-dyn-rel-error.s')
-rw-r--r--test/ELF/x86-64-dyn-rel-error.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ELF/x86-64-dyn-rel-error.s b/test/ELF/x86-64-dyn-rel-error.s
index f479eca2e7782..7a705eb541778 100644
--- a/test/ELF/x86-64-dyn-rel-error.s
+++ b/test/ELF/x86-64-dyn-rel-error.s
@@ -2,12 +2,12 @@
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/shared.s -o %t2.o
// RUN: ld.lld %t2.o -shared -o %t2.so
-// RUN: not ld.lld %t.o %t2.so -o %t 2>&1 | FileCheck %s
+// RUN: not ld.lld -shared %t.o %t2.so -o %t 2>&1 | FileCheck %s
.global _start
_start:
.data
- .long bar
+ .long zed
// CHECK: relocation R_X86_64_32 cannot be used against shared object; recompile with -fPIC