From 549046b742aa29475e083025ed45f4b2a3f45996 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sat, 27 Jun 1998 15:18:16 +0000 Subject: Update. 1998-06-27 David S. Miller * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_matches_host): Cleanup weak_extern usage for _dl_hwcap and _dl_hwcap_mask. (elf_machine_fixup_plt): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: When _dl_pagesize not set, use system call to always get correct answer. * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (__syscall_getpagesize): Add --- sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c') diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c b/sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c index e04e926644..6d44be7821 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c @@ -24,15 +24,17 @@ /* If we are not a static program, this value is collected from the system via the AT_PAGESZ auxiliary argument. If we are a static program, we - have to guess. We should _really_ get Linux a proper sysconf()... */ + use the getpagesize system call. */ -extern size_t _dl_pagesize; +size_t _dl_pagesize; + +extern size_t __syscall_getpagesize(void); int __getpagesize () { if (_dl_pagesize == 0) - _dl_pagesize = EXEC_PAGESIZE; + _dl_pagesize = __syscall_getpagesize(); return _dl_pagesize; } -- cgit v1.2.3