|
@@ -23,8 +23,8 @@ diff --git a/make/autoconf/libraries.m4 b/make/autoconf/libraries.m4
|
|
index 5120918aed2..f7a99955874 100644
|
|
index 5120918aed2..f7a99955874 100644
|
|
--- a/make/autoconf/libraries.m4
|
|
--- a/make/autoconf/libraries.m4
|
|
+++ b/make/autoconf/libraries.m4
|
|
+++ b/make/autoconf/libraries.m4
|
|
-@@ -146,6 +146,14 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBRARIES],
|
|
|
|
- fi
|
|
|
|
|
|
+@@ -152,6 +152,14 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBRARIES],
|
|
|
|
+ BASIC_JVM_LIBS="$BASIC_JVM_LIBS -latomic"
|
|
fi
|
|
fi
|
|
|
|
|
|
+ # Libatomic library
|
|
+ # Libatomic library
|
|
@@ -55,8 +55,8 @@ index c0f2446dbd7..dc416ece885 100644
|
|
arm*)
|
|
arm*)
|
|
VAR_CPU=arm
|
|
VAR_CPU=arm
|
|
VAR_CPU_ARCH=arm
|
|
VAR_CPU_ARCH=arm
|
|
-@@ -563,6 +569,8 @@ AC_DEFUN([PLATFORM_SETUP_LEGACY_VARS_HELPER],
|
|
|
|
- HOTSPOT_$1_CPU_DEFINE=PPC64
|
|
|
|
|
|
+@@ -565,6 +571,8 @@ AC_DEFUN([PLATFORM_SETUP_LEGACY_VARS_HELPER],
|
|
|
|
+ HOTSPOT_$1_CPU_DEFINE=RISCV64
|
|
|
|
|
|
# The cpu defines below are for zero, we don't support them directly.
|
|
# The cpu defines below are for zero, we don't support them directly.
|
|
+ elif test "x$OPENJDK_$1_CPU" = xarc; then
|
|
+ elif test "x$OPENJDK_$1_CPU" = xarc; then
|
|
@@ -68,7 +68,7 @@ diff --git a/src/hotspot/os/linux/os_linux.cpp b/src/hotspot/os/linux/os_linux.c
|
|
index b08caf4d5d3..2bf084895ba 100644
|
|
index b08caf4d5d3..2bf084895ba 100644
|
|
--- a/src/hotspot/os/linux/os_linux.cpp
|
|
--- a/src/hotspot/os/linux/os_linux.cpp
|
|
+++ b/src/hotspot/os/linux/os_linux.cpp
|
|
+++ b/src/hotspot/os/linux/os_linux.cpp
|
|
-@@ -1676,6 +1676,9 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|
|
|
|
|
+@@ -1721,6 +1721,9 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|
#ifndef EM_AARCH64
|
|
#ifndef EM_AARCH64
|
|
#define EM_AARCH64 183 /* ARM AARCH64 */
|
|
#define EM_AARCH64 183 /* ARM AARCH64 */
|
|
#endif
|
|
#endif
|
|
@@ -78,7 +78,7 @@ index b08caf4d5d3..2bf084895ba 100644
|
|
#ifndef EM_RISCV
|
|
#ifndef EM_RISCV
|
|
#define EM_RISCV 243 /* RISC-V */
|
|
#define EM_RISCV 243 /* RISC-V */
|
|
#endif
|
|
#endif
|
|
-@@ -1700,6 +1703,7 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|
|
|
|
|
+@@ -1745,6 +1748,7 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|
{EM_SH, EM_SH, ELFCLASS32, ELFDATA2MSB, (char*)"SuperH BE"},
|
|
{EM_SH, EM_SH, ELFCLASS32, ELFDATA2MSB, (char*)"SuperH BE"},
|
|
#endif
|
|
#endif
|
|
{EM_ARM, EM_ARM, ELFCLASS32, ELFDATA2LSB, (char*)"ARM"},
|
|
{EM_ARM, EM_ARM, ELFCLASS32, ELFDATA2LSB, (char*)"ARM"},
|
|
@@ -86,7 +86,7 @@ index b08caf4d5d3..2bf084895ba 100644
|
|
// we only support 64 bit z architecture
|
|
// we only support 64 bit z architecture
|
|
{EM_S390, EM_S390, ELFCLASS64, ELFDATA2MSB, (char*)"IBM System/390"},
|
|
{EM_S390, EM_S390, ELFCLASS64, ELFDATA2MSB, (char*)"IBM System/390"},
|
|
{EM_ALPHA, EM_ALPHA, ELFCLASS64, ELFDATA2LSB, (char*)"Alpha"},
|
|
{EM_ALPHA, EM_ALPHA, ELFCLASS64, ELFDATA2LSB, (char*)"Alpha"},
|
|
-@@ -1728,6 +1732,8 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|
|
|
|
|
+@@ -1773,6 +1777,8 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|
static Elf32_Half running_arch_code=EM_PPC;
|
|
static Elf32_Half running_arch_code=EM_PPC;
|
|
#elif (defined AARCH64)
|
|
#elif (defined AARCH64)
|
|
static Elf32_Half running_arch_code=EM_AARCH64;
|
|
static Elf32_Half running_arch_code=EM_AARCH64;
|
|
@@ -95,12 +95,12 @@ index b08caf4d5d3..2bf084895ba 100644
|
|
#elif (defined ARM)
|
|
#elif (defined ARM)
|
|
static Elf32_Half running_arch_code=EM_ARM;
|
|
static Elf32_Half running_arch_code=EM_ARM;
|
|
#elif (defined S390)
|
|
#elif (defined S390)
|
|
-@@ -1750,7 +1756,7 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|
|
|
|
|
+@@ -1795,7 +1801,7 @@ void * os::dll_load(const char *filename, char *ebuf, int ebuflen) {
|
|
static Elf32_Half running_arch_code=EM_LOONGARCH;
|
|
static Elf32_Half running_arch_code=EM_LOONGARCH;
|
|
#else
|
|
#else
|
|
#error Method os::dll_load requires that one of following is defined:\
|
|
#error Method os::dll_load requires that one of following is defined:\
|
|
- AARCH64, ALPHA, ARM, AMD64, IA32, IA64, LOONGARCH, M68K, MIPS, MIPSEL, PARISC, __powerpc__, __powerpc64__, RISCV, S390, SH, __sparc
|
|
- AARCH64, ALPHA, ARM, AMD64, IA32, IA64, LOONGARCH, M68K, MIPS, MIPSEL, PARISC, __powerpc__, __powerpc64__, RISCV, S390, SH, __sparc
|
|
-+ AARCH64, ALPHA, ARC ARM, AMD64, IA32, IA64, LOONGARCH, M68K, MIPS, MIPSEL, PARISC, __powerpc__, __powerpc64__, RISCV, S390, SH, __sparc
|
|
|
|
|
|
++ AARCH64, ALPHA, ARC, ARM, AMD64, IA32, IA64, LOONGARCH, M68K, MIPS, MIPSEL, PARISC, __powerpc__, __powerpc64__, RISCV, S390, SH, __sparc
|
|
#endif
|
|
#endif
|
|
|
|
|
|
// Identify compatibility class for VM's architecture and library's architecture
|
|
// Identify compatibility class for VM's architecture and library's architecture
|