[PATCH 3/4] x86 boot: When building vmlinux.bin properly precompute the memory image

2012-07-09 Thread Eric W. Biederman
The ELF loader in arch/x86/boot/compressed/misc.c is extremely fragile, as it copies the ELF executable over itself to put the code and data in their proper place. Squeezing unneeded space out of vmlinux by passing -z max-page-size 4096 to ld was enough to render the kernel unbootable. I

[PATCH 3/4] x86 boot: When building vmlinux.bin properly precompute the memory image

2012-07-09 Thread Eric W. Biederman
The ELF loader in arch/x86/boot/compressed/misc.c is extremely fragile, as it copies the ELF executable over itself to put the code and data in their proper place. Squeezing unneeded space out of vmlinux by passing -z max-page-size 4096 to ld was enough to render the kernel unbootable. I