aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kernel/vmlinux_64.lds.S
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-02-21 13:45:16 +0100
committerIngo Molnar <mingo@elte.hu>2008-04-17 17:40:45 +0200
commitb4e0409a36f4533770a12095bde2a574a08a319e (patch)
treeb160009adc4a6fb836dcd277da668c6a174c273f /arch/x86/kernel/vmlinux_64.lds.S
parent223ac2f42d49dd0324ca02ea15897ead1a2f5133 (diff)
x86: check vmlinux limits, 64-bit
these build-time and link-time checks would have prevented the vmlinux size regression. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/vmlinux_64.lds.S')
-rw-r--r--arch/x86/kernel/vmlinux_64.lds.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/vmlinux_64.lds.S b/arch/x86/kernel/vmlinux_64.lds.S
index fab13229973..4c369451007 100644
--- a/arch/x86/kernel/vmlinux_64.lds.S
+++ b/arch/x86/kernel/vmlinux_64.lds.S
@@ -247,3 +247,9 @@ SECTIONS
DWARF_DEBUG
}
+
+/*
+ * Build-time check on the image size:
+ */
+ASSERT((_end - _text <= KERNEL_IMAGE_SIZE),
+ "kernel image bigger than KERNEL_IMAGE_SIZE")