diff --git a/lld/test/elf2/relocation-errors.s b/lld/test/elf2/x86-64-reloc-32-error.s similarity index 72% rename from lld/test/elf2/relocation-errors.s rename to lld/test/elf2/x86-64-reloc-32-error.s index 17fd700f3b9d..24f52977439f 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 similarity index 67% rename from lld/test/elf2/relocation-32S-error.s rename to lld/test/elf2/x86-64-reloc-32S-error.s index 1c2c1d92eb36..f8eaf6701480 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