From 21da42ed9484a71756f5848d0f15dabbee3c6f41 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 11 May 2004 19:13:26 +0000 Subject: As noticed by the sharp eyed Joakim Tjernlund, I stupidly hard coded 4096 instead of PAGE_SIZE. Because I'm an idiot. --- ldso/ldso/dl-startup.c | 2 +- ldso/ldso/ldso.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ldso') diff --git a/ldso/ldso/dl-startup.c b/ldso/ldso/dl-startup.c index f92febf1c..1bb480e86 100644 --- a/ldso/ldso/dl-startup.c +++ b/ldso/ldso/dl-startup.c @@ -290,7 +290,7 @@ found_got: /* Call mmap to get a page of writable memory that can be used * for _dl_malloc throughout the shared lib loader. */ - _dl_pagesize = (auxvt[AT_PAGESZ].a_un.a_val)? auxvt[AT_PAGESZ].a_un.a_val : 4096; + _dl_pagesize = (auxvt[AT_PAGESZ].a_un.a_val)? auxvt[AT_PAGESZ].a_un.a_val : PAGE_SIZE; mmap_zero = malloc_buffer = _dl_mmap((void *) 0, _dl_pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); if (_dl_mmap_check_error(mmap_zero)) { diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c index bd1e3cb30..97d1c27db 100644 --- a/ldso/ldso/ldso.c +++ b/ldso/ldso/ldso.c @@ -115,7 +115,7 @@ void _dl_get_ready_to_run(struct elf_resolve *tpnt, struct elf_resolve *app_tpnt _dl_mmap_zero = mmap_zero; /* Store the page size for later use */ - _dl_pagesize = (auxvt[AT_PAGESZ].a_un.a_val)? auxvt[AT_PAGESZ].a_un.a_val : 4096; + _dl_pagesize = (auxvt[AT_PAGESZ].a_un.a_val)? auxvt[AT_PAGESZ].a_un.a_val : PAGE_SIZE; /* Now we have done the mandatory linking of some things. We are now * free to start using global variables, since these things have all been -- cgit v1.2.3