aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/vmlinux_64.lds.S
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-02-21 07:45:16 -0500
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:40:45 -0400
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 fab132299735..4c369451007b 100644
--- a/arch/x86/kernel/vmlinux_64.lds.S
+++ b/arch/x86/kernel/vmlinux_64.lds.S
@@ -247,3 +247,9 @@ SECTIONS
247 247
248 DWARF_DEBUG 248 DWARF_DEBUG
249} 249}
250
251/*
252 * Build-time check on the image size:
253 */
254ASSERT((_end - _text <= KERNEL_IMAGE_SIZE),
255 "kernel image bigger than KERNEL_IMAGE_SIZE")