(_dl_map_object): Add MAP_INHERIT flag in mmap from zero fill.
authorroland <roland>
Thu, 8 Jun 1995 22:59:14 +0000 (22:59 +0000)
committerroland <roland>
Thu, 8 Jun 1995 22:59:14 +0000 (22:59 +0000)
elf/dl-load.c

index c48286f..6cacd3e 100644 (file)
@@ -354,8 +354,8 @@ _dl_map_object (struct link_map *loader, const char *name,
 
                if (zeroend > zeropage)
                  /* Map the remaining zero pages in from the zero fill FD.  */
-                 mapat = mmap (zeropage, zeroend - zeropage,
-                               prot, MAP_ANON|MAP_PRIVATE|MAP_FIXED,
+                 mapat = mmap (zeropage, zeroend - zeropage, prot,
+                               MAP_ANON|MAP_PRIVATE|MAP_FIXED|MAP_INHERIT,
                                _dl_zerofd, 0);
              }
          }