[11u] RFR (XS) 8257181: s390x builds are very noisy with gc-sections messages

Aleksey Shipilev shade at redhat.com
Fri Nov 27 07:30:07 UTC 2020


Original fix:
   https://bugs.openjdk.java.net/browse/JDK-8257181
   https://git.openjdk.java.net/jdk/commit/a3eec39b

It does not apply to 11u cleanly, because the context is a bit different.

11u variant:

diff -r bb715aaab6e0 make/autoconf/flags-ldflags.m4
--- a/make/autoconf/flags-ldflags.m4    Sat Oct 03 19:46:41 2020 +0000
+++ b/make/autoconf/flags-ldflags.m4    Fri Nov 27 08:28:42 2020 +0100
@@ -75,11 +75,11 @@
      # add -z,relro (mark relocations read only) for all libs
      # add -z,now ("full relro" - more of the Global Offset Table GOT is marked read only)
      BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,-z,defs -Wl,-z,relro -Wl,-z,now"
      # s390x : remove unused code+data in link step
      if test "x$OPENJDK_TARGET_CPU" = xs390x; then
-      BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,--gc-sections -Wl,--print-gc-sections"
+      BASIC_LDFLAGS="$BASIC_LDFLAGS -Wl,--gc-sections"
      fi

      BASIC_LDFLAGS_JVM_ONLY="-Wl,-O1"

    elif test "x$TOOLCHAIN_TYPE" = xclang; then

Testing: linux-s390x-normal-server-fastdebug cross-compilation

-- 
Thanks,
-Aleksey



More information about the jdk-updates-dev mailing list