28 lines
723 B
Diff
28 lines
723 B
Diff
|
|
Subject: add downgrade the glibc symbol of fcntl
|
||
|
|
|
||
|
|
---
|
||
|
|
src/hotspot/os/linux/os_linux.cpp | 7 +++++++
|
||
|
|
1 file changed, 7 insertions(+)
|
||
|
|
|
||
|
|
diff --git a/src/hotspot/os/linux/os_linux.cpp b/src/hotspot/os/linux/os_linux.cpp
|
||
|
|
index aa8be1d89..0aa9b57d8 100644
|
||
|
|
--- a/src/hotspot/os/linux/os_linux.cpp
|
||
|
|
+++ b/src/hotspot/os/linux/os_linux.cpp
|
||
|
|
@@ -127,6 +127,13 @@
|
||
|
|
#include <sched.h>
|
||
|
|
#endif
|
||
|
|
|
||
|
|
+#if defined(AARCH64)
|
||
|
|
+ __asm__(".symver fcntl64,fcntl@GLIBC_2.17");
|
||
|
|
+#elif defined(AMD64)
|
||
|
|
+ __asm__(".symver fcntl64,fcntl@GLIBC_2.2.5");
|
||
|
|
+#endif
|
||
|
|
+
|
||
|
|
+
|
||
|
|
// if RUSAGE_THREAD for getrusage() has not been defined, do it here. The code calling
|
||
|
|
// getrusage() is prepared to handle the associated failure.
|
||
|
|
#ifndef RUSAGE_THREAD
|
||
|
|
--
|
||
|
|
2.19.1
|
||
|
|
|