aboutsummaryrefslogtreecommitdiff
path: root/contrib/elf2dmp/qemu_elf.h
diff options
context:
space:
mode:
authorViktor Prutyanov <viktor.prutyanov@phystech.edu>2018-12-20 04:24:37 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2019-02-05 16:50:17 +0100
commitbd4d0da7db2bbbfd8715f5040edda9f146628d98 (patch)
treefda5739343a1655738c5167e99ed9f74a2153d5c /contrib/elf2dmp/qemu_elf.h
parente53f3466e3233a66e3d77f1ee53c330c29179fcc (diff)
downloadqemu-bd4d0da7db2bbbfd8715f5040edda9f146628d98.zip
qemu-bd4d0da7db2bbbfd8715f5040edda9f146628d98.tar.gz
qemu-bd4d0da7db2bbbfd8715f5040edda9f146628d98.tar.bz2
contrib/elf2dmp: use GLib in ELF processing
Replace POSIX mmap with GLib g_mapped_file_new in ELF processing module to make elf2dmp cross-platform. Signed-off-by: Viktor Prutyanov <viktor.prutyanov@phystech.edu> Message-Id: <20181220012441.13694-3-viktor.prutyanov@phystech.edu> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'contrib/elf2dmp/qemu_elf.h')
-rw-r--r--contrib/elf2dmp/qemu_elf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/elf2dmp/qemu_elf.h b/contrib/elf2dmp/qemu_elf.h
index da70aff..2a79638 100644
--- a/contrib/elf2dmp/qemu_elf.h
+++ b/contrib/elf2dmp/qemu_elf.h
@@ -33,7 +33,7 @@ typedef struct QEMUCPUState {
int is_system(QEMUCPUState *s);
typedef struct QEMU_Elf {
- int fd;
+ GMappedFile *gmf;
size_t size;
void *map;
QEMUCPUState **state;