Re: [Qemu-devel] [PATCH 1/2] contrib/elf2dmp: use GLib file mapping

2018-11-21 Thread Roman Kagan
On Fri, Nov 02, 2018 at 03:28:17AM +0300, Viktor Prutyanov wrote: > Replace POSIX mmap with GLib g_mapped_file_new to make elf2dmp > cross-paltform. After this patch there are no direct POSIX calls. > > Signed-off-by: Viktor Prutyanov > --- > Makefile | 2 +- > contrib/elf2

Re: [Qemu-devel] [PATCH 1/2] contrib/elf2dmp: use GLib file mapping

2018-11-05 Thread Eric Blake
On 11/1/18 7:28 PM, Viktor Prutyanov wrote: Replace POSIX mmap with GLib g_mapped_file_new to make elf2dmp cross-paltform. After this patch there are no direct POSIX calls. s/paltform/platform/ Signed-off-by: Viktor Prutyanov --- Makefile | 2 +- -- Eric Blake, Pri

[Qemu-devel] [PATCH 1/2] contrib/elf2dmp: use GLib file mapping

2018-11-01 Thread Viktor Prutyanov
Replace POSIX mmap with GLib g_mapped_file_new to make elf2dmp cross-paltform. After this patch there are no direct POSIX calls. Signed-off-by: Viktor Prutyanov --- Makefile | 2 +- contrib/elf2dmp/Makefile.objs | 2 +- contrib/elf2dmp/addrspace.c | 7 --- contrib/e