changeset 30283:11cf732119e4

Manually add --nxcompat --no-seh --dynamicbase to linker flags if available, works around binutils' policy of making exploits as easy as possible by default.
author reimar
date Sat, 16 Jan 2010 16:39:46 +0000
parents 94876ebd061d
children 03f99130b7c3
files configure
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Jan 16 16:22:57 2010 +0000
+++ b/configure	Sat Jan 16 16:39:46 2010 +0000
@@ -8189,6 +8189,14 @@
   echores "no"
 fi
 
+echocheck "linker support for --nxcompat --no-seh --dynamicbase"
+if cc_check "-Wl,--nxcompat -Wl,--no-seh -Wl,--dynamicbase" ; then
+  extra_ldflags="-Wl,--nxcompat -Wl,--no-seh -Wl,--dynamicbase $extra_ldflags"
+  echores "yes"
+else
+  echores "no"
+fi
+
 
 # Dynamic linking flags
 # (FIXME: 'echocheck "dynamic linking"' above and modify here accordingly)