From: Ulrich Drepper Date: Fri, 2 Sep 2005 07:33:58 +0000 (+0000) Subject: (_dl_map_object_from_fd): No need to change protection of memory used for the last... X-Git-Tag: cvs/fedora-glibc-20050912T0656~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fc072badcea77fcd96e8514ba584dc5bbd5e991e;p=thirdparty%2Fglibc.git (_dl_map_object_from_fd): No need to change protection of memory used for the last segment. --- diff --git a/elf/dl-load.c b/elf/dl-load.c index 677174d0369..58b0f917313 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;