aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-07-06 22:59:31 +0000
committerRoland McGrath <roland@gnu.org>2004-07-06 22:59:31 +0000
commit3fb035f6a242b95261c94376f2c4d770f36e4eed (patch)
treedef38cbc66c9e75c2df09efab44833f16f964166 /elf
parent0b4391716c8285ad7ad7ab6140a919a513e37b45 (diff)
downloadglibc-3fb035f6a242b95261c94376f2c4d770f36e4eed.zip
glibc-3fb035f6a242b95261c94376f2c4d770f36e4eed.tar.gz
glibc-3fb035f6a242b95261c94376f2c4d770f36e4eed.tar.bz2
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.
Diffstat (limited to 'elf')
-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 f85ae58..afbb06b 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -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);