From 25b86c05c3e6ec72e7eea03e1d3c9a28e9abbe13 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 11 Dec 1995 10:00:21 +0000 Subject: [PATCH] Sun Dec 10 09:56:06 1995 Roland McGrath * elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call. --- ChangeLog | 4 ++++ elf/dl-minimal.c | 3 ++- error.h | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 error.h diff --git a/ChangeLog b/ChangeLog index 07b9e34211..a01a8f38d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Dec 10 09:56:06 1995 Roland McGrath + + * elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call. + Fri Dec 8 13:04:51 1995 Roland McGrath * locale/error.c, locale/error.h: Files removed. 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; diff --git a/error.h b/error.h new file mode 100644 index 0000000000..70f3192fa6 --- /dev/null +++ b/error.h @@ -0,0 +1 @@ +#include