Problem with p_align and AT_PAGESZ check
Ulrich Drepper
drepper@redhat.com
Sat Jun 14 16:22:00 GMT 2003
-----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-----
More information about the Libc-alpha
mailing list