From fc072badcea77fcd96e8514ba584dc5bbd5e991e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 2 Sep 2005 07:33:58 +0000 Subject: (_dl_map_object_from_fd): No need to change protection of memory used for the last segment. --- elf/dl-load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elf') 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; -- cgit 1.4.1