]> git.proxmox.com Git - qemu.git/commit
Fix loading of ELF multiboot kernels
authorKevin Wolf <kwolf@redhat.com>
Fri, 4 Dec 2009 16:19:25 +0000 (17:19 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 19 Dec 2009 14:26:20 +0000 (08:26 -0600)
commit139e310025d0cb654c5f905214a4c685398fd0c7
tree23ee426bfff999e4258eb7c32f42920daf4bcc9e
parentbed93b1dcbd57f0bd6fc06d25244287c4b33e024
Fix loading of ELF multiboot kernels

The multiboot implementation assumed that there is only one program header
(which contains the entry point) and that the entry point is at the start of
the code. This doesn't hold true generally and caused too little data to be
loaded.

Fix the loading code to pass the whole loaded data to the Multiboot Option ROM.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 092493be3caab1ac77f4223b4c3fb0975d1ed490)
hw/loader.c
hw/pc.c