aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-20 15:08:26 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-20 15:08:26 +0000
commit664e7d93f93d421225a115a433d0dbbc40444daa (patch)
tree4836bcb5fb8b2c910932840d7a0f1a79529ee033 /sysdeps/unix/sysv
parent54beacabbe34d033abcf9545c28f091ae06e944b (diff)
downloadglibc-664e7d93f93d421225a115a433d0dbbc40444daa.tar
glibc-664e7d93f93d421225a115a433d0dbbc40444daa.tar.gz
glibc-664e7d93f93d421225a115a433d0dbbc40444daa.tar.bz2
glibc-664e7d93f93d421225a115a433d0dbbc40444daa.zip
Update.
2004-09-20 Ulrich Drepper <drepper@redhat.com> * elf/dl-load.c: Define __stack_prot. * sysdeps/unix/sysv/linux/dl-execstack.c: Don't define __stack_prot here, just declare it.
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r--sysdeps/unix/sysv/linux/dl-execstack.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sysdeps/unix/sysv/linux/dl-execstack.c b/sysdeps/unix/sysv/linux/dl-execstack.c
index c2b964bf7f..97ff5d0e62 100644
--- a/sysdeps/unix/sysv/linux/dl-execstack.c
+++ b/sysdeps/unix/sysv/linux/dl-execstack.c
@@ -28,12 +28,7 @@
#include "kernel-features.h"
-int __stack_prot attribute_hidden attribute_relro
-#if _STACK_GROWS_DOWN
- = PROT_READ|PROT_WRITE|PROT_GROWSDOWN;
-#elif _STACK_GROWS_UP
- = PROT_READ|PROT_WRITE|PROT_GROWSUP;
-#endif
+extern int __stack_prot attribute_relro attribute_hidden;
int