-kernel option broken for some multiboot kernels

Bug #1208944 reported by Martijn van den Broek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Unassigned

Bug Description

When using the -kernel option QEMU fails with "Error while fetching elf kernel from rom" when the ELF file contains a segment with a file size of 0. This is typical for segments containing only a .bss section.

rom_copy (hw/core/loader.c) fails to load roms (elf segments in this case) with a datasize of 0 - it skips the rom because rom->data is NULL. This bug is introduced by commit d60fa42e8bae39440f997ebfe8fe328269a57d16 'Save memory allocation in the elf loader' and affects QEMU v1.5.0 and later.

I'll send a patch for this bug to qemu-devel.

Revision history for this message
Martijn van den Broek (martijn-vdbrk) wrote :

Patch sent to qemu-devel.

Changed in qemu:
status: New → Fix Committed
Changed in qemu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.