diff options
Diffstat (limited to 'test/ELF/aarch64-ldprel-lo19-invalid.s')
-rw-r--r-- | test/ELF/aarch64-ldprel-lo19-invalid.s | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ELF/aarch64-ldprel-lo19-invalid.s b/test/ELF/aarch64-ldprel-lo19-invalid.s new file mode 100644 index 0000000000000..04df32e059042 --- /dev/null +++ b/test/ELF/aarch64-ldprel-lo19-invalid.s @@ -0,0 +1,11 @@ +# REQUIRES: aarch64 + +# RUN: llvm-mc -filetype=obj -triple=aarch64-linux-none %s -o %t.o +# RUN: not ld.lld -shared %t.o -o %t 2>&1 | FileCheck %s + +# CHECK: relocation R_AARCH64_LD_PREL_LO19 out of range: 2065536 is not in [-1048576, 1048575] + + ldr x8, patatino + .data + .zero 2000000 +patatino: |