From 0014ffb70c9ed234984595d6c9ca3b5c175996aa Mon Sep 17 00:00:00 2001 From: Owen Dunn Date: Tue, 24 Nov 2015 22:57:46 +0000 Subject: [PATCH] Enable DEP and ASLR flags on VC++ linker command line /dynamicbase and /nxcompat on the VC linker command line should enable DEP and ASLR according to this MSDN article. https://msdn.microsoft.com/en-us/library/bb430720.aspx --- mkfiles.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkfiles.pl b/mkfiles.pl index 59ecfdc4..90e4f9dc 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -636,7 +636,7 @@ if (defined $makefiles{'vc'}) { "CFLAGS = /nologo /W3 /O1 " . (join " ", map {"-I$dirpfx$_"} @srcdirs) . " /D_WINDOWS /D_WIN32_WINDOWS=0x500 /DWINVER=0x500\n". - "LFLAGS = /incremental:no /fixed\n". + "LFLAGS = /incremental:no /dynamicbase /nxcompat\n". "RCFLAGS = ".(join " ", map {"-I$dirpfx$_"} @srcdirs). " -DWIN32 -D_WIN32 -DWINVER=0x0400\n". "\n".