x86_64: Align data segment to PAGE_SIZE boundary
PATCH 1/1 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.
Thanks
Vivek
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.
---
arch/x86_64/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+)
arch/x86_64/kernel/vmlinux.lds.S renamed from arch/x86_64/kernel/vmlinux.lds.S~x86_64-align-data-segment-to-4K-boundary +1 -0
@@ -60,6 +60,7 @@ SECTIONS } #endif + . = ALIGN(PAGE_SIZE); /* Align data segment to page size boundary */ /* Data */ .data : AT(ADDR(.data) - LOAD_OFFSET) { *(.data)
_
Quoted 5 lines · Vivek Goyal
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.
I sent it to Linus. Thanks.
-Andi