diff --git a/jdk/make/CompileLaunchers.gmk b/jdk/make/CompileLaunchers.gmk index 156446ac386..9847c94f8cd 100644 --- a/jdk/make/CompileLaunchers.gmk +++ b/jdk/make/CompileLaunchers.gmk @@ -93,6 +93,16 @@ define SetupLauncher endif $1_LDFLAGS := $3 + + ifeq ($(OPENJDK_TARGET_OS), linux) + # Set the image base address for zLinux 64 to 0x60000 for launchers, + # allows compressedRefsShift to be 0 when -Xmx is set to 2040m or more. + # / RTC PR 100052 + ifeq ($(OPENJDK_TARGET_CPU), s390x) + $1_LDFLAGS += -Wl,-Ttext-segment=0x60000 + endif + endif + $1_LDFLAGS_SUFFIX := ifeq ($(OPENJDK_TARGET_OS), macosx) $1_PLIST_FILE := Info-cmdline.plist