about summary refs log tree commit diff
path: root/elf/dl-load.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-09-02 07:33:58 +0000
committerUlrich Drepper <drepper@redhat.com>2005-09-02 07:33:58 +0000
commitfc072badcea77fcd96e8514ba584dc5bbd5e991e (patch)
tree409bc2d15dc0d1b3646fb06dac92c1f40dc2b1da /elf/dl-load.c
parent84c516536c20680f2750313f0f4ff5964c7083be (diff)
downloadglibc-fc072badcea77fcd96e8514ba584dc5bbd5e991e.tar.gz
glibc-fc072badcea77fcd96e8514ba584dc5bbd5e991e.tar.xz
glibc-fc072badcea77fcd96e8514ba584dc5bbd5e991e.zip
(_dl_map_object_from_fd): No need to change protection of memory used for the last segment.
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 677174d036..58b0f91731 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -1200,7 +1200,7 @@ cannot allocate TLS data structures for initial thread");
 	     handle the portion of the segment past the end of the file
 	     mapping.  */
 	  __mprotect ((caddr_t) (l->l_addr + c->mapend),
-		      loadcmds[nloadcmds - 1].allocend - c->mapend,
+		      loadcmds[nloadcmds - 1].mapstart - c->mapend,
 		      PROT_NONE);
 
 	goto postmap;