From caee6ee372d2f9124e5e0f7c316127777ffca5b8 Mon Sep 17 00:00:00 2001 From: Julian Date: Wed, 29 May 2024 09:29:55 -0400 Subject: [PATCH] Get rid of AIX linker option: -bnorwexec High-level: this linker option is oxymoronic with JIT environment (where executable code are generated on the fly anyway). At least for the time being before we figured out why default codeCache is allocated through malloc (instead of mmap or shmget, for which that linker option appeared to have no effect by my tests). Even after we figured it out eventually, it is a legitimate question what value this option provides for JIT environment. this also has effect on FFI thunks (which are not generated in JIT codecache). Signed-off-by: Julian --- make/autoconf/flags-ldflags.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/autoconf/flags-ldflags.m4 b/make/autoconf/flags-ldflags.m4 index ab1dcbc3c82..8ecd492d95b 100644 --- a/make/autoconf/flags-ldflags.m4 +++ b/make/autoconf/flags-ldflags.m4 @@ -86,7 +86,7 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER], LDFLAGS_CXX_PARTIAL_LINKING="$MACHINE_FLAG -r" if test "x$OPENJDK_TARGET_OS" = xaix; then - BASIC_LDFLAGS="-Wl,-b64 -Wl,-brtl -Wl,-bnorwexec -Wl,-bnolibpath -Wl,-bnoexpall \ + BASIC_LDFLAGS="-Wl,-b64 -Wl,-brtl -Wl,-bnolibpath -Wl,-bnoexpall \ -Wl,-bernotok -Wl,-bdatapsize:64k -Wl,-btextpsize:64k -Wl,-bstackpsize:64k" BASIC_LDFLAGS_JVM_ONLY="$BASIC_LDFLAGS_JVM_ONLY -Wl,-lC_r -Wl,-bbigtoc" fi