qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH, RFT] mingw32: use ASLR, no-SEH and DEP if available


From: Blue Swirl
Subject: [Qemu-devel] [PATCH, RFT] mingw32: use ASLR, no-SEH and DEP if available
Date: Tue, 14 Sep 2010 20:15:40 +0000

If the linker supports the flags --dynamicbase, --no-seh,
or --nxcompat, use them.

Signed-off-by: Blue Swirl <address@hidden>
--
This may create compatibility problems with XP. Testers wanted.
No change seen with Wine.
---
 configure |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 4061cb7..26f5465 100755
--- a/configure
+++ b/configure
@@ -2138,6 +2138,15 @@ if test "$solaris" = "no" ; then
     fi
 fi

+# Use ASLR, no-SEH and DEP if available
+if test "$mingw32" = "yes" ; then
+    for flag in --dynamicbase --no-seh --nxcompat; do
+        if $ld --help 2>/dev/null | grep ".$flag" >/dev/null 2>/dev/null ; then
+            LDFLAGS="-Wl,$flag $LDFLAGS"
+        fi
+    done
+fi
+
 confdir=$sysconfdir$confsuffix

 tools=
-- 
1.6.2.4



reply via email to

[Prev in Thread] Current Thread [Next in Thread]