This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: PROT_GROWSDOWN
- From: Roland McGrath <roland at redhat dot com>
- To: "Alfred M. Szmidt" <ams at kemisten dot nu>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Mon, 20 Sep 2004 13:43:09 -0700
- Subject: Re: PROT_GROWSDOWN
> The following change is bogus, _STACK_GROWS_DOWN is defined for i386
> in general, but PROT_GROWS{DOWN,UP} are only defined for the GNU/Linux
> port, not for GNU/Hurd.
Indeed, it should be #ifdef'd if used. But I can't see the point in the
__stack_prot addition at all. The code can perfectly well refer to
GL(dl_stack_flags) to see whether to add in PROT_EXEC, and the rest is
compile-time constant anyway.