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
--- 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"