summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-08-16 19:21:45 +0000
committerEric Andersen <andersen@codepoet.org>2004-08-16 19:21:45 +0000
commita4541d42ff420e9e9ece6aaa1d70c29162d869c8 (patch)
treee5d9fb7f2da96a590d5ba6649551ba41329ce472 /libc/misc
parentaa1a5f5c1a6cf2ff1d8cf9611133c5872165c47e (diff)
The variable used to store pagesize is not the same as the
_dl_pagesize variable in ldso, so avoid aliasing. -Erik
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/internals/__uClibc_main.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
index 6b5463f58..68fd460a1 100644
--- a/libc/misc/internals/__uClibc_main.c
+++ b/libc/misc/internals/__uClibc_main.c
@@ -48,9 +48,7 @@ extern void weak_function __pthread_initialize_minimal(void);
*/
extern int _dl_secure;
-extern size_t _dl_pagesize;
-size_t __dl_pagesize = 0;
-weak_alias(__dl_pagesize, _dl_pagesize);
+size_t __pagesize = 0;
char **__environ = 0;
const char *__progname = 0;
@@ -140,9 +138,9 @@ __uClibc_start_main(int argc, char **argv, char **envp,
}
aux_dat += 2;
}
- _dl_pagesize = (auxvt[AT_PAGESZ].a_un.a_val)? auxvt[AT_PAGESZ].a_un.a_val : PAGE_SIZE;
+ __pagesize = (auxvt[AT_PAGESZ].a_un.a_val)? auxvt[AT_PAGESZ].a_un.a_val : PAGE_SIZE;
#else
- _dl_pagesize = PAGE_SIZE;
+ __pagesize = PAGE_SIZE;
#endif
/* If we are dynamically linked the shared lib loader already