[ELF2/AArch64] R_AARCH64_ABS{16,32} can fail.

Add tests to ensure we handle this case this case gracefully.

llvm-svn: 249255
This commit is contained in:
Davide Italiano 2015-10-04 01:08:58 +00:00
parent df88f968e3
commit b00e523d00
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t
// RUN: not lld -flavor gnu2 -shared %t -o %t2 2>&1 | FileCheck %s
// REQUIRES: aarch64
.hword sym+65539
// CHECK: R_AARCH64_ABS16 out of range

View File

@ -0,0 +1,7 @@
// RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t
// RUN: not lld -flavor gnu2 -shared %t -o %t2 2>&1 | FileCheck %s
// REQUIRES: aarch64
.word sym+99999999999
// CHECK: R_AARCH64_ABS32 out of range