From: Marc Zyngier Date: Tue, 7 Feb 2012 01:46:38 +0000 (+0100) Subject: ARM: 7320/1: Fix proc_info table alignment X-Git-Tag: v3.3-rc4~30^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8b9987ffdc2ab9c5e2c1edad556b23ccb38249b;p=platform%2Fkernel%2Flinux-stable.git ARM: 7320/1: Fix proc_info table alignment With an admittedly exotic choice of configuration options (CC_OPTIMIZE_FOR_SIZE, THUMB2, some other size-minimizing ones) and compiler, the proc_info table can end up being misaligned, and the kernel being unbootable (Error: unrecognized/unsupported processor variant). Forcing the alignement to 4 bytes in the linker script fixes the issue. Signed-off-by: Marc Zyngier Signed-off-by: Russell King --- diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S index 1e19691..43a31fb 100644 --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S @@ -10,6 +10,7 @@ #include #define PROC_INFO \ + . = ALIGN(4); \ VMLINUX_SYMBOL(__proc_info_begin) = .; \ *(.proc.info.init) \ VMLINUX_SYMBOL(__proc_info_end) = .;