diff options
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r-- | elf/dl-load.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c index c48286f938..6cacd3e3b6 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -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); } } |