mboot.c: prefer ELF header over multiboot headersyslinux-3.73-pre6
commit5691a17ee9243df2248a987a103c8b56b4ac268e
authorRalf Ertzinger <ralf@skytale.net>
Mon, 20 Oct 2008 16:35:36 +0000 (20 18:35 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 20 Oct 2008 18:31:30 +0000 (20 11:31 -0700)
treed818905348da9167e29515ef2fc634b11022bf48
parent1626ee4b93762c0eba7047ef005cedda21440624
mboot.c: prefer ELF header over multiboot header

If a loaded kernel is in ELF format and contains a multiboot header indicating
valid relocation information, prefer the informations from the ELF header.
This is in violation of the Multiboot spec, but it's the way GRUB does
things and Solaris kernels rely on this behaviour.

Signed-of-by: Ralf Ertzinger <ralf@skytale.net>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/modules/mboot.c