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>
This commit is contained in:
Ingo Molnar
2008-02-21 13:45:16 +01:00
parent 223ac2f42d
commit b4e0409a36
3 changed files with 19 additions and 4 deletions

View File

@ -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")