28 lines · plain
1// REQUIRES: arm2// This test intentionally checks for fatal errors, and fatal errors aren't supported for testing when main is run twice.3// XFAIL: main-run-twice4// RUN: llvm-mc %s -triple=armv7a-linux-gnueabihf -arm-add-build-attributes -filetype=obj -o %t.o5// RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s6 7// RUN: llvm-mc %s -triple=armv7aeb-linux-gnueabihf -arm-add-build-attributes -filetype=obj -mcpu=cortex-a8 -o %t.o8// RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s9// RUN: not ld.lld --be8 %t.o -o /dev/null 2>&1 | FileCheck %s10 11// CHECK: InputSection too large for range extension thunk12 .syntax unified13 .thumb14 .text15 .globl _start16 .type _start, %function17_start:18 .space 2 * 1024 * 102419 // conditional branch has range of 1 Mb expect error as we can't place20 // a thunk in range of the branch.21 beq target22 .space 2 * 1024 * 102423 24 .section .text.2, "ax", %progbits25 .globl target26 .type target, %function27target: bx lr28