2 // RUN
: llvm-mc
%s
--arm-add-build-attributes
--triple
=armv7a-linux-gnueabihf
--filetype
=obj
-o
%t.o
3 // RUN
: ld.lld
%t.o
-o
%t
4 // RUN
: llvm-objdump
-d
--start-address
=0x2200b4 --stop-address
=0x2200be %t | FileCheck
%s
6 /// Create
a conditional branch too far away from
a precreated thunk
7 /// section. This will need
a thunk section created within range.
11 .section .text.0, "ax", %progbits
12 .space 2 * 1024 * 1024
14 .type _start, %function
16 /// Range of
+/- 1 Megabyte
, new ThunkSection will need creating after
19 .section .text.1, "ax", %progbits
23 // CHECK-NEXT
: 2200b4
: f000
8000 beq.w
0x2200b8 <__Thumbv7ABSLongThunk_target
>
24 // CHECK
: <__Thumbv7ABSLongThunk_target
>:
25 // CHECK-NEXT
: 2200b8
: f000
9001 b.w
0xe200be <target
>
26 // CHECK
: 2200bc: 4770 bx
lr
28 .section .text.2, "ax", %progbits
29 .space 12 * 1024 * 1024
31 .type target, %function