]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
[PATCH] m68knommu: align param section and add 5208EVB linker support
authorGreg Ungerer <gerg@snapgear.com>
Mon, 7 Nov 2005 04:09:50 +0000 (14:09 +1000)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 7 Nov 2005 16:00:46 +0000 (08:00 -0800)
Align the param section. It can end up starting on an unalingned
boundary depending on the size of ksymtab_strings. If it is
unaligned things like modules will fail to load with unaligned
access traps.

Add linker scipt support for the M5208EVB board.
Patch originally from Matt Waddel.

Signed-off-by: Greg Ungerer <gerg@uclinux.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/m68knommu/kernel/vmlinux.lds.S

index 47f06787190dfb14491db3cb2c06376471acd6e1..0eab92ca4b97a8bf4a419b10759a580cec5e7070 100644 (file)
 #define        RAM_LENGTH      0x3e0000
 #endif
 
+/*
+ *     The Freescale 5208EVB board has 32MB of RAM.
+ */
+#if defined(CONFIG_M5208EVB)
+#define        RAM_START       0x40020000
+#define        RAM_LENGTH      0x01e00000
+#endif
+
 /*
  *     The senTec COBRA5272 board has nearly the same memory layout as 
  *     the M5272C3. We assume 16MiB ram.
@@ -275,6 +283,7 @@ SECTIONS {
                *(__ksymtab_strings)
 
                /* Built-in module parameters */
+               . = ALIGN(4) ;
                __start___param = .;
                *(__param)
                __stop___param = .;