patches/glibc/ports-2.13/450-alpha-DEFAULT_STACK_PERMS.patch
changeset 3103 a8bf927f6e37
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/ports-2.13/450-alpha-DEFAULT_STACK_PERMS.patch	Tue Nov 06 17:02:06 2012 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
     1.5 +
     1.6 +	* sysdeps/alpha/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
     1.7 +
     1.8 +diff --git glibc-2.13/glibc-ports-2.13/sysdeps/alpha/stackinfo.h glibc-2.13/glibc-ports-2.13/sysdeps/alpha/stackinfo.h
     1.9 +index 0a281bd..d9dbc35 100644
    1.10 +--- glibc-2.13/glibc-ports-2.13/sysdeps/alpha/stackinfo.h
    1.11 ++++ glibc-2.13/glibc-ports-2.13/sysdeps/alpha/stackinfo.h
    1.12 +@@ -22,7 +22,13 @@
    1.13 + #ifndef _STACKINFO_H
    1.14 + #define _STACKINFO_H	1
    1.15 + 
    1.16 ++#include <elf.h>
    1.17 ++
    1.18 + /* On Alpha the stack grows down.  */
    1.19 + #define _STACK_GROWS_DOWN	1
    1.20 + 
    1.21 ++/* Default to an executable stack.  PF_X can be overridden if PT_GNU_STACK is
    1.22 ++ * present, but it is presumed absent.  */
    1.23 ++#define DEFAULT_STACK_PERMS (PF_R|PF_W|PF_X)
    1.24 ++
    1.25 + #endif	/* stackinfo.h */
    1.26 +