summaryrefslogtreecommitdiff
path: root/test/ELF/x86-64-reloc-32S-error.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/x86-64-reloc-32S-error.s')
-rw-r--r--test/ELF/x86-64-reloc-32S-error.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ELF/x86-64-reloc-32S-error.s b/test/ELF/x86-64-reloc-32S-error.s
new file mode 100644
index 000000000000..aa19c2c32e93
--- /dev/null
+++ b/test/ELF/x86-64-reloc-32S-error.s
@@ -0,0 +1,7 @@
+// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
+// RUN: not ld.lld -shared %t -o %t2 2>&1 | FileCheck %s
+// REQUIRES: x86
+
+ movq _start - 0x1000000000000, %rdx
+
+#CHECK: R_X86_64_32S out of range