aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@systemhalted.org>2011-10-20 14:42:56 -0400
committerCarlos O'Donell <carlos@systemhalted.org>2011-10-20 14:42:56 -0400
commit9dd87de7ff43261dc83c74cc561ae392a405663f (patch)
tree22cae13e296ac0bc5b1d503498857ab2b96fb030
parent930046be6fedf95d9fce6548bf58ad5e33023d67 (diff)
downloadglibc-9dd87de7ff43261dc83c74cc561ae392a405663f.tar.xz
glibc-9dd87de7ff43261dc83c74cc561ae392a405663f.zip
Define DEFAULT_STACK_PERMS.
Signed-off-by: Carlos O'Donell <carlos@systemhalted.org>
-rw-r--r--ChangeLog.hppa5
-rw-r--r--sysdeps/hppa/stackinfo.h8
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog.hppa b/ChangeLog.hppa
index 14abdee318..20385130b3 100644
--- a/ChangeLog.hppa
+++ b/ChangeLog.hppa
@@ -1,5 +1,10 @@
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
with canonical fcntl.h.
diff --git a/sysdeps/hppa/stackinfo.h b/sysdeps/hppa/stackinfo.h
index 318de7143b..44929c46aa 100644
--- a/sysdeps/hppa/stackinfo.h
+++ b/sysdeps/hppa/stackinfo.h
@@ -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
@@ -22,6 +22,12 @@
#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