]> xenbits.xensource.com Git - osstest/qemu.git/commit
User mode support for Linux ELF files with no section header
authorCraig Heffner <cheffner@tacnetsol.com>
Mon, 5 Dec 2011 19:14:27 +0000 (14:14 -0500)
committerRiku Voipio <riku.voipio@linaro.org>
Tue, 17 Jun 2014 06:21:41 +0000 (09:21 +0300)
commitd3606f07440ee2c2bebea2b9932938e08b66d90b
tree13bf115c8f4aa1a5a0612ba6d106aebd4f95b579
parent480eda2eda7c464e252f17ac87ec61bccc14f285
User mode support for Linux ELF files with no section header

In user mode Linux, Qemu currently refuses to load ELF files that do not
contain section headers (ehdr->e_shentsize == 0). Since section headers are not
required in order to load an ELF file, simply removing the e_shentsize check in
elf_check_ehdr() allows ELF binaries with no section headers to be run properly
in user mode:

Signed-off-by: Craig Heffner <cheffner@tacnetsol.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/elfload.c