o Currently there is no specific alignment restriction in linker script
and in some cases it can be placed non 4K aligned addresses. This fails
kexec which checks that segment to be loaded is page aligned.
o I guess, it does not harm data segment to be 4K aligned.
Signed-off-by: Vivek Goyal <[EMAIL PROTECTED]>
---
arch/i386/kernel/vmlinux.lds.S | 1 +
1 file changed, 1 insertion(+)
diff -puN arch/i386/kernel/vmlinux.lds.S~i386-force-data-section-to-4K-aligned
arch/i386/kernel/vmlinux.lds.S
---
linux-2.6.19-rc2-git7-reloc/arch/i386/kernel/vmlinux.lds.S~i386-force-data-section-to-4K-aligned
2006-10-23 13:15:21.000000000 -0400
+++ linux-2.6.19-rc2-git7-reloc-root/arch/i386/kernel/vmlinux.lds.S
2006-10-23 15:08:55.000000000 -0400
@@ -52,6 +52,7 @@ SECTIONS
}
/* writeable */
+ . = ALIGN(4096);
.data : AT(ADDR(.data) - LOAD_OFFSET) { /* Data */
*(.data)
CONSTRUCTORS
_
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot