Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
java/openjdk8: allow using DSCR on powerpc64
DSCR was disabled because of a bug in stable/12. Additionally, remove ELFv1 support.
- Loading branch information
Showing
6 changed files
with
39 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- common/autoconf/flags.m4.orig 2024-01-02 12:56:28 UTC | ||
+++ common/autoconf/flags.m4 | ||
@@ -642,7 +642,7 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK], | ||
CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DVM_BIG_ENDIAN" | ||
fi | ||
fi | ||
- if test "x$OPENJDK_TARGET_CPU" = xppc64le; then | ||
+ if test "x$OPENJDK_TARGET_CPU" = xppc64le -o "x$OPENJDK_TARGET_CPU" = xppc64; then | ||
CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DABI_ELFv2" | ||
fi | ||
|
11 changes: 11 additions & 0 deletions
11
java/openjdk8/files/patch-common_autoconf_generated-configure.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- common/autoconf/generated-configure.sh.orig 2024-01-02 12:56:13 UTC | ||
+++ common/autoconf/generated-configure.sh | ||
@@ -43317,7 +43317,7 @@ $as_echo "$supports" >&6; } | ||
CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DVM_BIG_ENDIAN" | ||
fi | ||
fi | ||
- if test "x$OPENJDK_TARGET_CPU" = xppc64le; then | ||
+ if test "x$OPENJDK_TARGET_CPU" = xppc64le -o "x$OPENJDK_TARGET_CPU" = xppc64; then | ||
CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DABI_ELFv2" | ||
fi | ||
|
15 changes: 15 additions & 0 deletions
15
java/openjdk8/files/patch-hotspot_make_bsd_makefiles_ppc64.make
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- hotspot/make/bsd/makefiles/ppc64.make.orig 2024-01-02 13:01:01 UTC | ||
+++ hotspot/make/bsd/makefiles/ppc64.make | ||
@@ -37,11 +37,7 @@ ifeq ($(OPENJDK_TARGET_CPU_ENDIAN),big) | ||
endif | ||
|
||
ifeq ($(OPENJDK_TARGET_CPU_ENDIAN),big) | ||
- # fixes `relocation truncated to fit' error for gcc 4.1. | ||
- CFLAGS += -mminimal-toc | ||
- | ||
- # finds use ppc64 instructions, but schedule for power5 | ||
- CFLAGS += -mcpu=powerpc64 -mtune=power5 -minsert-sched-nops=regroup_exact -mno-multiple -mno-string | ||
+ CFLAGS += -mcpu=powerpc64 -mtune=power5 -DABI_ELFv2 | ||
else | ||
# Little endian machine uses ELFv2 ABI. | ||
CFLAGS += -DVM_LITTLE_ENDIAN -DABI_ELFv2 |
155 changes: 0 additions & 155 deletions
155
java/openjdk8/files/patch-hotspot_src_cpu_ppc_vm_stubGenerator__ppc.cpp
This file was deleted.
Oops, something went wrong.