zig/deps/lld/test/ELF/arm-thumb-branch-error.s
Andrew Kelley 4794281d64 embed LLD 5.0.0
This is 48aaa9f66120f72b5d7e4a90b32fee40a3386ce9 from the
git monorepo.
2017-08-27 17:46:59 -04:00

20 lines
658 B
ArmAsm

// RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t
// RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %S/Inputs/far-arm-thumb-abs.s -o %tfar
// RUN: not ld.lld %t %tfar -o %t2 2>&1 | FileCheck %s
// REQUIRES: arm
.syntax unified
.section .text, "ax",%progbits
.globl _start
.balign 0x10000
.type _start,%function
_start:
// address of too_far symbols are just out of range of ARM branch with
// 26-bit immediate field and an addend of -8
bl too_far1
b too_far2
beq.w too_far3
// CHECK: R_ARM_THM_CALL out of range
// CHECK-NEXT: R_ARM_THM_JUMP24 out of range
// CHECK-NEXT: R_ARM_THM_JUMP19 out of range