summary refs log tree commit diff
path: root/elf/dl-minimal.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-12-11 10:00:21 +0000
committerRoland McGrath <roland@gnu.org>1995-12-11 10:00:21 +0000
commit25b86c05c3e6ec72e7eea03e1d3c9a28e9abbe13 (patch)
treeea4842e7b7531d8d6bb26cb68b661c311c095f2f /elf/dl-minimal.c
parent787e4db95ce0de5195bc066b4682f840bec7baaf (diff)
downloadglibc-25b86c05c3e6ec72e7eea03e1d3c9a28e9abbe13.tar.gz
glibc-25b86c05c3e6ec72e7eea03e1d3c9a28e9abbe13.tar.xz
glibc-25b86c05c3e6ec72e7eea03e1d3c9a28e9abbe13.zip
Sun Dec 10 09:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> cvs/libc-951211
	* elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call.
Diffstat (limited to 'elf/dl-minimal.c')
-rw-r--r--elf/dl-minimal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/dl-minimal.c b/elf/dl-minimal.c
index 332f21e0b0..9e0a77032d 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;