summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/test/elf2/x86-64-reloc-32-error.s (renamed from lld/test/elf2/relocation-errors.s)4
-rw-r--r--lld/test/elf2/x86-64-reloc-32S-error.s (renamed from lld/test/elf2/relocation-32S-error.s)4
2 files changed, 2 insertions, 6 deletions
diff --git a/lld/test/elf2/relocation-errors.s b/lld/test/elf2/x86-64-reloc-32-error.s
index 17fd700f3b9..24f52977439 100644
--- a/lld/test/elf2/relocation-errors.s
+++ b/lld/test/elf2/x86-64-reloc-32-error.s
@@ -1,10 +1,8 @@
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/abs.s -o %tabs
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-// RUN: not ld.lld2 %tabs %t -o %t2 2>&1 | FileCheck %s
+// RUN: not ld.lld2 -shared %tabs %t -o %t2 2>&1 | FileCheck %s
// REQUIRES: x86
-.global _start
-_start:
movl $big, %edx
#CHECK: R_X86_64_32 out of range
diff --git a/lld/test/elf2/relocation-32S-error.s b/lld/test/elf2/x86-64-reloc-32S-error.s
index 1c2c1d92eb3..f8eaf670148 100644
--- a/lld/test/elf2/relocation-32S-error.s
+++ b/lld/test/elf2/x86-64-reloc-32S-error.s
@@ -1,9 +1,7 @@
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-// RUN: not ld.lld2 %t -o %t2 2>&1 | FileCheck %s
+// RUN: not ld.lld2 -shared %t -o %t2 2>&1 | FileCheck %s
// REQUIRES: x86
-.global _start
-_start:
movq _start - 0x1000000000000, %rdx
#CHECK: R_X86_64_32S out of range
OpenPOWER on IntegriCloud