Re: [PATCH 8/9] [HACK] ARM: imx: work around v7_cpu_resume link error

From: Shawn Guo
Date: Tue Feb 19 2013 - 00:10:11 EST


On Mon, Feb 18, 2013 at 11:11:30PM -0500, Nicolas Pitre wrote:
> On Tue, 19 Feb 2013, Shawn Guo wrote:
>
> > On Mon, Feb 18, 2013 at 12:06:32PM -0500, Nicolas Pitre wrote:
> > > Try the following instead. It makes the code simpler and easier to
> > > debug.
> > >
> > It works now. Thanks, Nico. Care to send a patch for it? I'd like
> > to apply it.
>
> ----- >8
>
> FRom: Nicolas Pitre <nicolas.pitre@xxxxxxxxxx>
> Date: Mon, 18 Feb 2013 12:06:32 -0500 (EST)
> Subject: ARM: mach-imx: move early resume code out of the .data section
>
> Building the kernel with allyesconfig fails because the i.mx early
> resume code located in the .data section is unable to fixup the bl
> relocation as the branch target gets too far away.
>
> The idea of having code in the .data section allows for easy access to
> nearby data using relative addressing while the MMU is off. However it
> is probably best to move the code back to the .text section where it
> belongs and fixup the data access instead. This solves the bl reloc
> issue (at least until this becomes a general problem) and simplifies
> the code as well.
>
> Signed-off-by: Nicolas Pitre <nico@xxxxxxxxxx>

Applied as a fix for 3.9-rc, thanks.

Shawn

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/