]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define DEFAULT_STACK_PERMS.
authorCarlos O'Donell <carlos@systemhalted.org>
Thu, 20 Oct 2011 18:42:56 +0000 (14:42 -0400)
committerCarlos O'Donell <carlos@systemhalted.org>
Thu, 20 Oct 2011 18:42:56 +0000 (14:42 -0400)
Signed-off-by: Carlos O'Donell <carlos@systemhalted.org>
ChangeLog.hppa
sysdeps/hppa/stackinfo.h

index 14abdee318f3b28d021d19192130555acf5de803..20385130b35abcbb2248a82953ba90b4873a1355 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-20  Carlos O'Donell  <carlos@systemhalted.org>
+
+       * sysdeps/hppa/stackinfo.h: Update copyright year.
+       Include elf.h and define DEFAULT_STACK_PERMS.
+
 2011-10-20  Carlos O'Donell  <carlos@systemhalted.org>
 
        * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Synchronize
index 318de7143b07ea8cba427805c92d5c8f2e8e5499..44929c46aa0be0d3ac86c0e16cfa33d3e6a019e5 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 #ifndef _STACKINFO_H
 #define _STACKINFO_H   1
 
+#include <elf.h>
+
+/* 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)
+
 /* On PA the stack grows up.  */
 #define _STACK_GROWS_UP        1