aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-load.c
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/dl-load.c
parent2a656c95d63d085ad73e8b5ca1470d02055385d5 (diff)
downloadglibc-44ad8377fb7f62dedf950ddf6fe653943367a5d5.tar
glibc-44ad8377fb7f62dedf950ddf6fe653943367a5d5.tar.gz
glibc-44ad8377fb7f62dedf950ddf6fe653943367a5d5.tar.bz2
glibc-44ad8377fb7f62dedf950ddf6fe653943367a5d5.zip
(_dl_map_object_from_fd): Use correct symbolic constant in mprotect call.
Diffstat (limited to 'elf/dl-load.c')
-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;
}