about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--elf/dl-load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index d72ba64a3f..fe4e957ced 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -945,7 +945,7 @@ _dl_map_object_from_fd (const char *name, int fd, struct filebuf *fbp,
 	   mapping.  */
 	__mprotect ((caddr_t) (l->l_addr + c->mapend),
 		    loadcmds[nloadcmds - 1].allocend - c->mapend,
-		    0);
+		    PROT_NONE);
 
 	goto postmap;
       }