From patchwork Thu Feb 16 20:18:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [3/5] ARM: force branch instructions to use long distance encoding X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 141679 Message-Id: <1329423490-15580-3-git-send-email-u.kleine-koenig@pengutronix.de> To: linux-arm-kernel@lists.infradead.org, Catalin Marinas Cc: kernel@pengutronix.de Date: Thu, 16 Feb 2012 21:18:08 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org This fixes a linker error when the kernel image gets bigger than approx. 1 MiB. This is done analogous to the change to head.S in commit a75e524 (ARM: 6504/1: Thumb-2: Fix long-distance conditional branches in head.S for Thumb-2.) Signed-off-by: Uwe Kleine-König --- arch/arm/kernel/head-nommu.S | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/kernel/head-nommu.S b/arch/arm/kernel/head-nommu.S index d46f259..1aca35d 100644 --- a/arch/arm/kernel/head-nommu.S +++ b/arch/arm/kernel/head-nommu.S @@ -51,6 +51,7 @@ ENTRY(stext) #endif bl __lookup_processor_type @ r5=procinfo r9=cpuid movs r10, r5 @ invalid processor (r5=0)? + it eq beq __error_p @ yes, error 'p' adr lr, BSYM(__after_proc_init) @ return (PIC) address