mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86: update vmlinux.lds.S to place .data section on a page boundary
@ 2006-09-28 20:12 Neil Horman
  2006-09-28 20:42 ` Sam Ravnborg
  0 siblings, 1 reply; 6+ messages in thread
From: Neil Horman @ 2006-09-28 20:12 UTC (permalink / raw)
  To: linux-kernel; +Cc: mj, davej, nhorman

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@tuxdriver.com>


 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
 ***************************************************/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-10-01 21:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-28 20:12 [PATCH] x86: update vmlinux.lds.S to place .data section on a page boundary Neil Horman
2006-09-28 20:42 ` Sam Ravnborg
2006-09-28 23:22   ` Neil Horman
2006-09-29  0:03     ` Neil Horman
2006-09-30  1:13       ` Eric W. Biederman
2006-10-01 21:47         ` Neil Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®