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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>


 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux