load_linux: Don't use size heuristic for non-relocatable kernels
commitef81a3ad54845ffb5ad62714cd62db4740ad5cff
authorH. Peter Anvin <hpa@zytor.com>
Wed, 4 Dec 2013 20:35:09 +0000 (4 12:35 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 4 Dec 2013 20:37:55 +0000 (4 12:37 -0800)
tree10275ed236df5969aa06431b22649f5219305b82
parent6194d6a0ea7eb68a3d55311818d4488faa18663f
load_linux: Don't use size heuristic for non-relocatable kernels

For non-relocatable kernels, it really makes no sense to estimate how
much space the kernel is going to need, as if we fail, there is really
nothing we can do about it.  Furthermore, it is actively wrong for
zImage kernels (which aren't decompressed in place) and for non-Linux
kernels.

Additionally, tweak the code for assigning an address to the command
line to handle a few more corner cases correctly, be simpler, and not
need to build the memory map again since we already are doing that
elsewhere.

Reported-and-tested-by: Christian Hesse <list@eworm.de>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/lib/syslinux/load_linux.c