2004-05-18 Andreas Schwab <schwab@suse.de>

* elf/dl-load.c (_dl_map_object_from_fd): Use the end address of
	the first segment for mprotect, not l_text_end.
This commit is contained in:
Roland McGrath 2004-07-06 22:59:31 +00:00
parent 0b4391716c
commit 3fb035f6a2

View File

@ -1117,7 +1117,7 @@ cannot allocate TLS data structures for initial thread");
unallocated. Then jump into the normal segment-mapping loop to
handle the portion of the segment past the end of the file
mapping. */
__mprotect ((caddr_t) l->l_text_end,
__mprotect ((caddr_t) (l->l_addr + c->mapend),
loadcmds[nloadcmds - 1].allocend - c->mapend,
PROT_NONE);