forked from OSchip/llvm-project
[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:
parent
df88f968e3
commit
b00e523d00
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue