This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with p_align and AT_PAGESZ check


-----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-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]