Messages in this thread | | | Date | Tue, 19 Feb 2013 13:10:09 +0800 | From | Shawn Guo <> | Subject | Re: [PATCH 8/9] [HACK] ARM: imx: work around v7_cpu_resume link error |
| |
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@linaro.org> > 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@linaro.org>
Applied as a fix for 3.9-rc, thanks.
Shawn
| |