1// REQUIRES: arm
2// RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t
3// RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck %s
4 .syntax unified
5 .balign 0x1000
6 .thumb
7 .text
8 .globl _start
9 .type _start, %function
10_start:
11 bx lr
12
13 .section .text.large1, "ax", %progbits
14 .balign 4
15.space (17 * 1024 * 1024)
16 bl _start
17.space (17 * 1024 * 1024)
18
19// CHECK: error: InputSection too large for range extension thunk {{.*}}.text.large1
20