27 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 -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t5// RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s6 7// RUN: llvm-mc -filetype=obj -triple=thumbv7aeb-none-linux-gnueabi %s -o %t8// RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s9// RUN: not ld.lld --be8 %t -o /dev/null 2>&1 | FileCheck %s10 11 .syntax unified12 .balign 0x100013 .thumb14 .text15 .globl _start16 .type _start, %function17_start:18 bx lr19 20 .section .text.large1, "ax", %progbits21 .balign 422.space (17 * 1024 * 1024)23 bl _start24.space (17 * 1024 * 1024)25 26// CHECK: error: InputSection too large for range extension thunk {{.*}}.text.large127