changeset 15604:5c23a21cc78c

Set stack non-executable where supported.
author reimar
date Wed, 01 Jun 2005 09:08:15 +0000
parents 2d1ad16b6021
children 904787c80946
files configure
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed Jun 01 09:01:41 2005 +0000
+++ b/configure	Wed Jun 01 09:08:15 2005 +0000
@@ -6728,6 +6728,17 @@
   echores "only used for x86"
 fi
 
+echocheck "compiler support for noexecstack"
+cat > $TMPC <<EOF
+int main(void) { return 0; }
+EOF
+if cc_check -Wl,-z,noexecstack ; then
+  _ld_extra="-Wl,-z,noexecstack $_ld_extra"
+  echores "yes"
+else
+  echores "no"
+fi
+
 echocheck "ftello()"
 # if we don't have ftello use the osdep/ compatibility module
 cat > $TMPC << EOF