diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-02-21 07:45:16 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:45 -0400 |
commit | b4e0409a36f4533770a12095bde2a574a08a319e (patch) | |
tree | b160009adc4a6fb836dcd277da668c6a174c273f /arch/x86/kernel/vmlinux_64.lds.S | |
parent | 223ac2f42d49dd0324ca02ea15897ead1a2f5133 (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.S | 6 |
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 | */ | ||
254 | ASSERT((_end - _text <= KERNEL_IMAGE_SIZE), | ||
255 | "kernel image bigger than KERNEL_IMAGE_SIZE") | ||