From 65342356965f356a7fb9b4578856c5ad0861d423 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Tue, 1 Mar 2011 10:00:28 +1000 Subject: [PATCH] alpha: Define DEFAULT_STACK_PERMS --- ChangeLog.alpha | 4 ++++ sysdeps/alpha/stackinfo.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog.alpha b/ChangeLog.alpha index ca354f1..473edac 100644 --- a/ChangeLog.alpha +++ b/ChangeLog.alpha @@ -1,5 +1,9 @@ 2011-02-28 Aurelien Jarno + * sysdeps/alpha/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X. + +2011-02-28 Aurelien Jarno + * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETPIPE_SZ, F_GETPIPE_SZ): Define. diff --git a/sysdeps/alpha/stackinfo.h b/sysdeps/alpha/stackinfo.h index 0a281bd..d9dbc35 100644 --- a/sysdeps/alpha/stackinfo.h +++ b/sysdeps/alpha/stackinfo.h @@ -22,7 +22,13 @@ #ifndef _STACKINFO_H #define _STACKINFO_H 1 +#include + /* On Alpha the stack grows down. */ #define _STACK_GROWS_DOWN 1 +/* Default to an executable stack. PF_X can be overridden if PT_GNU_STACK is + * present, but it is presumed absent. */ +#define DEFAULT_STACK_PERMS (PF_R|PF_W|PF_X) + #endif /* stackinfo.h */ -- 2.7.4