summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/vmlinux.lds.S
diff options
context:
space:
mode:
authorMarc Zyngier <Marc.Zyngier@arm.com>2012-02-07 02:46:38 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-02-09 17:25:37 +0100
commitb8b9987ffdc2ab9c5e2c1edad556b23ccb38249b (patch)
tree2a09d6c72facf9288d173bd71b4fcca71ba689c6 /arch/arm/kernel/vmlinux.lds.S
parentLinux 3.3-rc3 (diff)
downloadlinux-b8b9987ffdc2ab9c5e2c1edad556b23ccb38249b.tar.xz
linux-b8b9987ffdc2ab9c5e2c1edad556b23ccb38249b.zip
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 <marc.zyngier@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/vmlinux.lds.S')
-rw-r--r--arch/arm/kernel/vmlinux.lds.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S
index 1e19691e0406..43a31fb06318 100644
--- a/arch/arm/kernel/vmlinux.lds.S
+++ b/arch/arm/kernel/vmlinux.lds.S
@@ -10,6 +10,7 @@
#include <asm/page.h>
#define PROC_INFO \
+ . = ALIGN(4); \
VMLINUX_SYMBOL(__proc_info_begin) = .; \
*(.proc.info.init) \
VMLINUX_SYMBOL(__proc_info_end) = .;