This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Problem with p_align and AT_PAGESZ check
- From: "H. J. Lu" <hjl at lucon dot org>
- To: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Sat, 14 Jun 2003 08:18:21 -0700
- Subject: Problem with p_align and AT_PAGESZ check
The current ld.so assumes p_align & (GL(dl_pagesize) - 1) == 0. I don't
believe it is currect for all platforms. p_align is specified by psABI.
On i386, it has to be 4KB no matter what value is passed by AT_PAGESZ
from kernel. The p_align and GL(dl_pagesize) check should be platform
dependent. On i386, it should be
if (p_align != 0x1000
|| ((GL(dl_pagesize) & (p_align - 1)) != 0)
error
or
if (p_align != 0x1000)
error
When GL(dl_pagesize) > p_align, there may be one page with mixed text
and data segments.
H.J.