aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-11-28 14:36:42 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-12-02 17:14:58 +0000
commit17a43505b36cc174e5ece1b54e629396b66a8767 (patch)
tree51a9460967c4edd3842e5a8e7a855efa6f744f7d /sysdeps/generic
parentb7d4de086ce7fcc531cdd67a61dc27b5b3eff482 (diff)
downloadglibc-17a43505b36cc174e5ece1b54e629396b66a8767.zip
glibc-17a43505b36cc174e5ece1b54e629396b66a8767.tar.gz
glibc-17a43505b36cc174e5ece1b54e629396b66a8767.tar.bz2
elf: Consolidate stackinfo.h
And use sane default the generic implementation. Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/stackinfo.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/sysdeps/generic/stackinfo.h b/sysdeps/generic/stackinfo.h
index bf752ce..51e5f92 100644
--- a/sysdeps/generic/stackinfo.h
+++ b/sysdeps/generic/stackinfo.h
@@ -15,6 +15,15 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
-/* This file contains a bit of information about the stack allocation
- of the processor. Since there is no general truth we can't say
- anything here. */
+/* This file contains a bit of information about the stack allocation of the
+ processor. Default to a non executable stack that grows downwards. */
+
+#ifndef _STACKINFO_H
+#define _STACKINFO_H 1
+
+#include <elf.h>
+
+#define _STACK_GROWS_DOWN 1
+#define DEFAULT_STACK_PERMS (PF_R|PF_W)
+
+#endif