summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-08-19 20:21:26 +0000
committerEric Andersen <andersen@codepoet.org>2004-08-19 20:21:26 +0000
commita3a586bad730757cd92ec25eccb0dc9734bb9e36 (patch)
treefaec34c32875ede424829281c2adf3bc60ca2c8c /ldso
parent721201d6e3ae4996e6a44d350844a47f325c44ab (diff)
'pagesize' was local to dl-startup.c. In ldso.c we need
to use '_dl_pagesize' -Erik
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/ldso.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c
index 7fe1f3fb2..bd0b3d8de 100644
--- a/ldso/ldso/ldso.c
+++ b/ldso/ldso/ldso.c
@@ -209,7 +209,7 @@ void _dl_get_ready_to_run(struct elf_resolve *tpnt, unsigned long load_addr,
* Even though the program header is marked RWE, the kernel gives
* it to us rx.
*/
- Elf32_Addr mpa = (ppnt->p_vaddr + app_tpnt->loadaddr) & ~(pagesize - 1);
+ Elf32_Addr mpa = (ppnt->p_vaddr + app_tpnt->loadaddr) & ~(_dl_pagesize - 1);
Elf32_Word mps = ((ppnt->p_vaddr + app_tpnt->loadaddr) - mpa) + ppnt->p_memsz;
if(_dl_mprotect(mpa, mps, PROT_READ | PROT_WRITE | PROT_EXEC)) {
SEND_STDERR("Couldn't mprotect .dynamic segment to rwx.\n");