8198640: VS2017 (LNK4281) Link Warning Against Missed ASLR Optimization
authorlfoltan
Mon, 26 Feb 2018 09:51:14 -0500
changeset 49165 75e2a82fed81
parent 49164 7e958a8ebcd3
child 49166 2879dad8d4ec
8198640: VS2017 (LNK4281) Link Warning Against Missed ASLR Optimization Summary: Ignore VS2017 linker option that warns against potentially missed ASLR optimizations. Reviewed-by: ctornqvi, erikj
make/autoconf/flags.m4
--- a/make/autoconf/flags.m4	Mon Feb 26 09:34:12 2018 +0100
+++ b/make/autoconf/flags.m4	Mon Feb 26 09:51:14 2018 -0500
@@ -1200,7 +1200,7 @@
   if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
     LDFLAGS_MICROSOFT="-nologo -opt:ref"
     $2LDFLAGS_JDK="[$]$2LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no"
-    $2JVM_LDFLAGS="[$]$2JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000"
+    $2JVM_LDFLAGS="[$]$2JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000 -ignore:4281"
     if test "x$OPENJDK_$1_CPU_BITS" = "x32"; then
       LDFLAGS_SAFESH="-safeseh"
       $2LDFLAGS_JDK="[$]$2LDFLAGS_JDK $LDFLAGS_SAFESH"