diff --git a/make/autoconf/flags-ldflags.m4 b/make/autoconf/flags-ldflags.m4 index b0bdbb7412a..d0c6d0351e7 100644 --- a/make/autoconf/flags-ldflags.m4 +++ b/make/autoconf/flags-ldflags.m4 @@ -27,7 +27,7 @@ # # =========================================================================== -# (c) Copyright IBM Corp. 2019, 2019 All Rights Reserved +# (c) Copyright IBM Corp. 2019, 2024 All Rights Reserved # =========================================================================== AC_DEFUN([FLAGS_SETUP_LDFLAGS], @@ -87,7 +87,7 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER], -fPIC" elif test "x$TOOLCHAIN_TYPE" = xxlc; then - BASIC_LDFLAGS="-b64 -brtl -bnolibpath -bexpall -bernotok -btextpsize:64K \ + BASIC_LDFLAGS="-b64 -brtl -bnolibpath -bexpall -bernotok -brwexec_must -btextpsize:64K \ -bdatapsize:64K -bstackpsize:64K" # libjvm.so has gotten too large for normal TOC size; compile with qpic=large and link with bigtoc BASIC_LDFLAGS_JVM_ONLY="-Wl,-lC_r -bbigtoc"