about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-08-11 20:27:50 +0000
committerUlrich Drepper <drepper@redhat.com>2001-08-11 20:27:50 +0000
commit44ad8377fb7f62dedf950ddf6fe653943367a5d5 (patch)
treed2e4e5428dbcc083dde2e6186caa3d5992436ea2 /elf
parent2a656c95d63d085ad73e8b5ca1470d02055385d5 (diff)
downloadglibc-44ad8377fb7f62dedf950ddf6fe653943367a5d5.tar.gz
glibc-44ad8377fb7f62dedf950ddf6fe653943367a5d5.tar.xz
glibc-44ad8377fb7f62dedf950ddf6fe653943367a5d5.zip
(_dl_map_object_from_fd): Use correct symbolic constant in mprotect call.
Diffstat (limited to 'elf')
-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;
       }