[PATCH] x86: update vmlinux.lds.S to place .data section on a page boundary

From: Neil Horman
Date: Thu Sep 28 2006 - 16:17:25 EST


Patch to update vmlinux linker script so that .data section is on a page
boundary. without this change the kernel's .data section is on a non-4k
boundary, and this prevents kexec from loading a new kernel. Tested
successfully by me.

Thanks & Regards
Neil

Signed-off-by: Neil Horman <nhorman@xxxxxxxxxxxxx>


vmlinux.lds.S | 1 +
1 files changed, 1 insertion(+)


diff --git a/arch/i386/kernel/vmlinux.lds.S b/arch/i386/kernel/vmlinux.lds.S
index 1e7ac1c..43ed5be 100644
--- a/arch/i386/kernel/vmlinux.lds.S
+++ b/arch/i386/kernel/vmlinux.lds.S
@@ -50,6 +50,7 @@ SECTIONS
}
__tracedata_end = .;

+ . = ALIGN(4096);
/* writeable */
.data : AT(ADDR(.data) - LOAD_OFFSET) { /* Data */
*(.data)
--
/***************************************************
*Neil Horman
*Software Engineer
*gpg keyid: 1024D / 0x92A74FA1 - http://pgp.mit.edu
***************************************************/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/