diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-12-17 18:34:15 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-12-17 18:34:15 +0000 |
commit | 789f5785a650e9cee4c292e33520f2ff9206df17 (patch) | |
tree | 2d49fd5823a0430bcc8a33d4dadd37c04bcd368d /ldso/ldso/ldso.c | |
parent | 14ad6760690b422e2d0f709c06a543196a6da2c0 (diff) |
Use PAGE_SIZE rather than hard coding 4096
Diffstat (limited to 'ldso/ldso/ldso.c')
-rw-r--r-- | ldso/ldso/ldso.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c index 601da6283..768ff241c 100644 --- a/ldso/ldso/ldso.c +++ b/ldso/ldso/ldso.c @@ -359,7 +359,7 @@ LD_BOOT(unsigned long args) /* Call mmap to get a page of writable memory that can be used * for _dl_malloc throughout the shared lib loader. */ - mmap_zero = malloc_buffer = _dl_mmap((void *) 0, 4096, + mmap_zero = malloc_buffer = _dl_mmap((void *) 0, PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); if (_dl_mmap_check_error(mmap_zero)) { SEND_STDERR("dl_boot: mmap of a spare page failed!\n"); |