diff options
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-minimal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/dl-minimal.c b/elf/dl-minimal.c index 332f21e..9e0a770 100644 --- a/elf/dl-minimal.c +++ b/elf/dl-minimal.c @@ -60,7 +60,8 @@ malloc (size_t n) /* Insufficient space left; allocate another page. */ caddr_t page; assert (n <= pagesize); - page = mmap (0, pagesize, PROT_READ|PROT_WRITE, MAP_ANON, _dl_zerofd, 0); + page = mmap (0, pagesize, PROT_READ|PROT_WRITE, + MAP_ANON|MAP_PRIVATE, _dl_zerofd, 0); assert (page != (caddr_t) -1); if (page != alloc_end) alloc_ptr = page; |