From 1b489bcc11e83631cd62f41154573120a2c104fe Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 26 Jun 2021 11:39:53 +1000 Subject: [PATCH] Attempt to fix java 8 native crash --- native/src/main/c/NativeCipherImpl.cpp | 2 +- native/src/main/c/NativeCompressImpl.cpp | 2 +- native/src/main/resources/native-cipher.so | Bin 40344 -> 40336 bytes native/src/main/resources/native-compress.so | Bin 113784 -> 113736 bytes 4 files changed, 2 insertions(+), 2 deletions(-) diff --git a/native/src/main/c/NativeCipherImpl.cpp b/native/src/main/c/NativeCipherImpl.cpp index 22c7f00c2..9de328ea2 100644 --- a/native/src/main/c/NativeCipherImpl.cpp +++ b/native/src/main/c/NativeCipherImpl.cpp @@ -6,7 +6,7 @@ // Support for CentOS 6 __asm__(".symver memcpy,memcpy@GLIBC_2.2.5"); -void *__wrap_memcpy(void *dest, const void *src, size_t n) { +extern "C" void *__wrap_memcpy(void *dest, const void *src, size_t n) { return memcpy(dest, src, n); } diff --git a/native/src/main/c/NativeCompressImpl.cpp b/native/src/main/c/NativeCompressImpl.cpp index 4574ccf1e..b490ede58 100644 --- a/native/src/main/c/NativeCompressImpl.cpp +++ b/native/src/main/c/NativeCompressImpl.cpp @@ -6,7 +6,7 @@ // Support for CentOS 6 __asm__(".symver memcpy,memcpy@GLIBC_2.2.5"); -void *__wrap_memcpy(void *dest, const void *src, size_t n) { +extern "C" void *__wrap_memcpy(void *dest, const void *src, size_t n) { return memcpy(dest, src, n); } diff --git a/native/src/main/resources/native-cipher.so b/native/src/main/resources/native-cipher.so index 78c26f28e1e555f59654e8f104c3f0d7b58e8a75..8ac128df6f1ebb309238cda9816d083de4fb685d 100755 GIT binary patch delta 1616 zcmZ{kZ)j6j6u|Gzd--e9BwD#XS2WSMrhYJ~a}<@WDH|9CHAOqzD8?WK3s#%z{^(qr zmTg$uLb9{XA}glD4}v0z55K7UP_|(m4qKFd)F`MMRv{mR!F2B2+*242cF4K+o%1{Q z+?(^xedE_`dHh9rpwQIf-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