mboot: correct the detection of the multiboot header
authorH. Peter Anvin <hpa@zytor.com>
Mon, 12 Oct 2009 22:59:21 +0000 (15:59 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 12 Oct 2009 22:59:21 +0000 (15:59 -0700)
commit3d6f5132894acf54b1958ae190624fc0a774294f
treea41ad1ff2ee4c5cc99396ff02843d894ab9be9fa
parentfee688790af77e282a3d04c9fb061089ec16a502
mboot: correct the detection of the multiboot header

Correct the detection of the multiboot header.  The logic for
when the header extends past the file was backwards, which broke
non-ELF multiboot kernels completely.  Apparently they are few and far
between.

Reported-by: Klaus T. <nightos@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/mboot/map.c