2 // RUN
: llvm-mc
%s
-triple
=armv7a-linux-gnueabihf
-arm-add-build-attributes
-filetype
=obj
-o
%t.o
3 // RUN
: not ld.lld
%t.o
-o
/dev
/null
2>&1 | FileCheck
%s
5 // CHECK
: InputSection too large for range extension thunk
10 .type _start, %function
12 .space 2 * 1024 * 1024
13 // conditional branch has range of
1 Mb expect error as we can
't place
14 // a thunk in range of the branch.
16 .space 2 * 1024 * 1024
18 .section .text.2, "ax", %progbits
20 .type target, %function