Re: [Qemu-devel] [PATCH] linux-user: elf: Map empty PT_LOAD sections

2019-05-03 Thread Peter Maydell
On Thu, 18 Apr 2019 at 17:46, Giuseppe Musacchio wrote: > > Some PT_LOAD sections may be completely zeroed out and their p_filesize > is zero, in that case the loader should just allocate a page that's at > least p_memsz bytes large (plus eventual alignment padding). Thanks for this patch --

Re: [Qemu-devel] [PATCH] linux-user: elf: Map empty PT_LOAD sections

2019-05-03 Thread Giuseppe Musacchio
Friendly inactivity ping. On Thu, 18 Apr 2019 at 17:42, Giuseppe Musacchio wrote: > > Some PT_LOAD sections may be completely zeroed out and their p_filesize > is zero, in that case the loader should just allocate a page that's at > least p_memsz bytes large (plus eventual alignment padding). >

[Qemu-devel] [PATCH] linux-user: elf: Map empty PT_LOAD sections

2019-04-18 Thread Giuseppe Musacchio
Some PT_LOAD sections may be completely zeroed out and their p_filesize is zero, in that case the loader should just allocate a page that's at least p_memsz bytes large (plus eventual alignment padding). Calling zero_bss does this job for us, all we have to do is make sure we don't try to mmap a