aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/aarch64-jump26-error.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/aarch64-jump26-error.s')
-rw-r--r--test/ELF/aarch64-jump26-error.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ELF/aarch64-jump26-error.s b/test/ELF/aarch64-jump26-error.s
new file mode 100644
index 000000000000..81fbba1f4551
--- /dev/null
+++ b/test/ELF/aarch64-jump26-error.s
@@ -0,0 +1,11 @@
+// RUN: llvm-mc -filetype=obj -triple=aarch64-pc-freebsd %S/Inputs/abs.s -o %tabs
+// RUN: llvm-mc -filetype=obj -triple=aarch64-pc-freebsd %s -o %t
+// RUN: not ld.lld %t %tabs -o %t2 2>&1 | FileCheck %s
+// REQUIRES: aarch64
+
+.text
+.globl _start
+_start:
+ b big
+
+// CHECK: R_AARCH64_JUMP26 out of range