diff options
| author | Richard Henderson | 2010-07-27 19:25:27 +0200 |
|---|---|---|
| committer | Edgar E. Iglesias | 2010-07-29 08:32:27 +0200 |
| commit | cf129f3a8eea76a34bc748762c31bbc27eabe540 (patch) | |
| tree | 25f67db1b11263eaa4088c63953cf1319e8a5491 /linux-user/linux_loop.h | |
| parent | Update version for 0.13.x (diff) | |
| download | qemu-cf129f3a8eea76a34bc748762c31bbc27eabe540.tar.gz qemu-cf129f3a8eea76a34bc748762c31bbc27eabe540.tar.xz qemu-cf129f3a8eea76a34bc748762c31bbc27eabe540.zip | |
linux-user: Handle filesz < memsz for any PT_LOAD segment.
I caught padzero not properly initializing the .bss segment
on a statically linked Alpha program. Rather than a minimal
patch, replace the gross code with a single mmap+memset.
Share more code between load_elf_interp and load_elf_binary.
Legally, an ELF program need not have just a single .bss;
and PT_LOAD segment can have memsz > filesz.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'linux-user/linux_loop.h')
0 files changed, 0 insertions, 0 deletions
