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:
@ -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")
|
||||
|
Reference in New Issue
Block a user