]> sourceware.org Git - dwz.git/commitdiff
Use ELF_C_WRITE instead of ELF_C_WRITE_MMAP for elf_begin, it is
authorJakub Jelinek <jakub@redhat.com>
Thu, 3 May 2012 19:06:40 +0000 (21:06 +0200)
committerJakub Jelinek <jakub@redhat.com>
Thu, 3 May 2012 19:06:40 +0000 (21:06 +0200)
faster and doesn't leak mmapped region.

dwz.c

diff --git a/dwz.c b/dwz.c
index 120f171940dcae93d6ab6a986d66ae8ef3638e79..15698ccd890b8a3b8326c2c290b5c2db7292d154 100644 (file)
--- a/dwz.c
+++ b/dwz.c
@@ -6740,7 +6740,7 @@ write_dso (DSO *dso, const char *file, struct stat *st)
        }
     }
 
-  elf = elf_begin (fd, ELF_C_WRITE_MMAP, NULL);
+  elf = elf_begin (fd, ELF_C_WRITE, NULL);
   if (elf == NULL)
     {
       error (0, 0, "cannot open ELF file: %s", elf_errmsg (-1));
This page took 0.030488 seconds and 5 git commands to generate.