[PATCH] powerpc: Fix lwsync feature fixup vs. modules on 64-bit
Sachin Sant
sachinp at in.ibm.com
Sat Feb 27 00:10:36 EST 2010
Benjamin Herrenschmidt wrote:
> Anton's commit enabling the use of the lwsync fixup mechanism on 64-bit
> breaks modules. The lwsync fixup section uses .long instead of the
> FTR_ENTRY_OFFSET macro used by other fixups sections, and thus will
> generate 32-bit relocations that our module loader cannot resolve.
>
> This changes it to use the same type as other feature sections.
>
> Note however that we might want to consider using 32-bit for all the
> feature fixup offsets and add support for R_PPC_REL32 to module_64.c
> instead as that would reduce the size of the kernel image. I'll leave
> that as an exercise for the reader for now...
>
> Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> ---
> arch/powerpc/include/asm/feature-fixups.h | 2 +-
> arch/powerpc/lib/feature-fixups.c | 3 ++-
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
Thanks for the patch Ben.
I can boot -next on my power boxes with it.
thanks
-Sachin
--
---------------------------------
Sachin Sant
IBM Linux Technology Center
India Systems and Technology Labs
Bangalore, India
---------------------------------
More information about the Linuxppc-dev
mailing list