Richard Henderson cf129f3a8e 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>
2010-07-29 08:32:27 +02:00
..
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2010-06-16 13:03:51 +01:00
2009-10-17 11:38:00 +03:00
2010-04-25 12:59:30 +00:00
2010-07-22 05:52:08 +02:00
2010-05-29 02:27:35 +01:00
2010-06-16 13:03:51 +01:00
2010-06-16 13:03:51 +01:00
2010-06-16 13:03:51 +01:00
2009-10-17 11:38:00 +03:00
2010-06-16 13:03:51 +01:00
2009-07-01 18:24:44 +00:00