[lkml]   [2006]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] x86_64: Align data segment to PAGE_SIZE boundary
Hi Andi,

This patch was previously part of relocatable kernel series but now I have
forked it out as it is required for 2.6.19 kernels and relocatable kernel
patches have to wait.

Please apply.


o Explicitly align data segment to PAGE_SIZE boundary otherwise depending on
config options and tool chain it might be placed on a non PAGE_SIZE aligned
boundary and vmlinux loaders like kexec fail when they encounter a
PT_LOAD type segment which is not aligned to PAGE_SIZE boundary.

Signed-off-by: Vivek Goyal <>

arch/x86_64/kernel/ | 1 +
1 file changed, 1 insertion(+)

diff -puN arch/x86_64/kernel/ arch/x86_64/kernel/
--- linux-2.6.19-rc6-reloc/arch/x86_64/kernel/ 2006-11-17 00:05:06.000000000 -0500
+++ linux-2.6.19-rc6-reloc-root/arch/x86_64/kernel/ 2006-11-17 00:05:06.000000000 -0500
@@ -60,6 +60,7 @@ SECTIONS

+ . = ALIGN(PAGE_SIZE); /* Align data segment to page size boundary */
/* Data */
.data : AT(ADDR(.data) - LOAD_OFFSET) {
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2006-11-20 17:33    [W:0.040 / U:24.688 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site