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 16:25:37 +0000
commitb8b9987ffdc2ab9c5e2c1edad556b23ccb38249b (patch)
tree2a09d6c72facf9288d173bd71b4fcca71ba689c6 /arch/arm/kernel/vmlinux.lds.S
parentd65b4e98d7ea3038b767b70fe8be959b2913f16d (diff)
downloadop-kernel-dev-b8b9987ffdc2ab9c5e2c1edad556b23ccb38249b.zip
op-kernel-dev-b8b9987ffdc2ab9c5e2c1edad556b23ccb38249b.tar.gz
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 1e19691..43a31fb 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) = .;
OpenPOWER on IntegriCloud