(_dl_map_object_from_fd): No need to change protection of memory used for the last...
authorUlrich Drepper <drepper@redhat.com>
Fri, 2 Sep 2005 07:33:58 +0000 (07:33 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 2 Sep 2005 07:33:58 +0000 (07:33 +0000)
elf/dl-load.c

index 677174d..58b0f91 100644 (file)
@@ -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;