This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Problem with p_align and AT_PAGESZ check
- From: Ulrich Drepper <drepper at redhat dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Sat, 14 Jun 2003 09:21:14 -0700
- Subject: Re: Problem with p_align and AT_PAGESZ check
- Organization: Red Hat, Inc.
- References: <20030614151821.GA1741@lucon.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
H. J. Lu wrote:
> On i386, it should be
>
> if (p_align != 0x1000
> || ((GL(dl_pagesize) & (p_align - 1)) != 0)
> error
>
> or
> if (p_align != 0x1000)
> error
No. The file can specify higher alignment requirements, there is no
problem with that as long as the p_align is a multiple of the pagesize.
Whether we should fail if the actual alignment is not a multiple of the
pagesize can be discussed. I probably would agree that it should be
fatal since the extra work necessary and the subtle changes in the
semantics make supporting this undesirable.
- --
- --------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+60t62ijCOnn/RHQRAtoIAKDHGm/Rnhj2w989KlYJbERY3ai1AACeOi2v
FwR0Y0JD4zogzzHb/AcZQNY=
=bVNw
-----END PGP SIGNATURE-----