2 // RUN
: llvm-mc
-filetype
=obj
-triple
=armv7a-linux-gnueabihf
--arm-add-build-attributes
%s
-o
%t.o
3 // RUN
: ld.lld
--fix-cortex-a8
-verbose
%t.o
-o
/dev
/null
2>&1 | FileCheck
%s
4 /// Test that we warn
, but don
't attempt to patch when it is impossible to
5 /// redirect the branch as the Section is too large.
7 // CHECK: skipping cortex-a8 657417 erratum sequence, section .text is too large to patch
8 // CHECK: skipping cortex-a8 657417 erratum sequence, section .text.02 is too large to patch
12 /// Case 1: 1 MiB conditional branch range without relocation.
15 .type _start, %function
23 .type target, %function
25 /// 32-bit Branch spans 2 4KiB regions, preceded by a 32-bit non branch
26 /// instruction, a patch will be attempted. Unfortunately the branch
27 /// cannot reach outside the section so we have to abort the patch.
33 .section .text.01, "ax", %progbits
39 .section .text.02, "ax", %progbits
40 /// 32-bit Branch and link spans 2 4KiB regions, preceded by a 32-bit
41 /// non branch instruction, a patch will be be attempted. Unfortunately the
42 /// the BL cannot reach outside the section so we have to abort the patch.
45 .space 16 * 1024 * 1024