summaryrefslogtreecommitdiff
path: root/libc/sysdeps/ia64/stackinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/ia64/stackinfo.h')
-rw-r--r--libc/sysdeps/ia64/stackinfo.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libc/sysdeps/ia64/stackinfo.h b/libc/sysdeps/ia64/stackinfo.h
index b7dc5d91d..a7446e665 100644
--- a/libc/sysdeps/ia64/stackinfo.h
+++ b/libc/sysdeps/ia64/stackinfo.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001 Free Software Foundation, Inc.
+/* Copyright (C) 2001, 2010 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,8 +22,14 @@
#ifndef _STACKINFO_H
#define _STACKINFO_H 1
+#include <elf.h>
+
/* On IA-64 the stack grows down. The register stack is of no concern
here. */
#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 */