aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@in.ibm.com>2006-11-20 11:29:09 -0500
committerAndi Kleen <andi@basil.nowhere.org>2006-11-21 04:26:54 -0500
commit9a14f2964b459c18198ee59ff7212321def82df7 (patch)
tree1607b2f6580fadb2793961e3161e87de542b529d /arch/x86_64
parent1b7f6a626f0ff511c3840678466cbfe1d62c0b29 (diff)
[PATCH] x86_64: Align data segment to PAGE_SIZE boundary
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 <vgoyal@in.ibm.com> Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/kernel/vmlinux.lds.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/vmlinux.lds.S b/arch/x86_64/kernel/vmlinux.lds.S
index edb24aa714b4..d9534e750d4f 100644
--- a/arch/x86_64/kernel/vmlinux.lds.S
+++ b/arch/x86_64/kernel/vmlinux.lds.S
@@ -60,6 +60,7 @@ SECTIONS
60 } 60 }
61#endif 61#endif
62 62
63 . = ALIGN(PAGE_SIZE); /* Align data segment to page size boundary */
63 /* Data */ 64 /* Data */
64 .data : AT(ADDR(.data) - LOAD_OFFSET) { 65 .data : AT(ADDR(.data) - LOAD_OFFSET) {
65 *(.data) 66 *(.data)