diff options
author | Roland McGrath <roland@gnu.org> | 2004-07-06 22:59:31 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2004-07-06 22:59:31 +0000 |
commit | 3fb035f6a242b95261c94376f2c4d770f36e4eed (patch) | |
tree | def38cbc66c9e75c2df09efab44833f16f964166 /elf | |
parent | 0b4391716c8285ad7ad7ab6140a919a513e37b45 (diff) | |
download | glibc-3fb035f6a242b95261c94376f2c4d770f36e4eed.tar.gz glibc-3fb035f6a242b95261c94376f2c4d770f36e4eed.tar.xz glibc-3fb035f6a242b95261c94376f2c4d770f36e4eed.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c index f85ae586a1..afbb06b9e5 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); |