changeset 49165:75e2a82fed81

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
author lfoltan
date Mon, 26 Feb 2018 09:51:14 -0500
parents 7e958a8ebcd3
children 2879dad8d4ec
files make/autoconf/flags.m4
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"