[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 1317090] Re: qemu fails on ELF files with no section h
From: |
Paul Jimenez |
Subject: |
[Qemu-devel] [Bug 1317090] Re: qemu fails on ELF files with no section headers |
Date: |
Wed, 07 May 2014 14:34:39 -0000 |
** Also affects: qemu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1317090
Title:
qemu fails on ELF files with no section headers
Status in QEMU:
New
Status in “qemu” package in Ubuntu:
New
Bug description:
Using the latest version of qemu-user-static from trusty, 2.0.0+dfsg-
2ubuntu1.
Reported to qemu and patch submitted long ago by the guy who wrote
http://www.devttys0.com/2011/12/qemu-vs-sstrip/
but apparently dropped on the floor - at least, I can't find it in any qemu
bug tracker anywhere. It's now keeping me from running openwrt binaries under
qemu-arm-static (because the openwrt guys strip section headers to save space
on their teeny embedded boxes). It's a one-line patch, reproduced here:
--- qemu/linux-user/elfload.c 2011-12-02 15:16:07.637541215 -0500
+++ qemu-patched/linux-user/elfload.c 2011-12-02 15:27:24.061522798 -0500
@@ -1068,7 +1068,6 @@ static bool elf_check_ehdr(struct elfhdr
return (elf_check_arch(ehdr->e_machine)
&& ehdr->e_ehsize == sizeof(struct elfhdr)
&& ehdr->e_phentsize == sizeof(struct elf_phdr)
- && ehdr->e_shentsize == sizeof(struct elf_shdr)
&& (ehdr->e_type == ET_EXEC || ehdr->e_type == ET_DYN));
}
And I hope you'll consider patching ubuntu and maybe helping it get
pushed upstream. Thanks!
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1317090/+subscriptions
- [Qemu-devel] [Bug 1317090] Re: qemu fails on ELF files with no section headers,
Paul Jimenez <=