Don't reference symbol memcpy@GLIBC_2.2.5 on Android (#26447)

* Update wrap_memcpy.cc

Don't define symbol memcpy@GLIBC_2.2.5 on Android, which can lead to issues with the link option "-Wl,--no-undefined" (see b/190214878)

* Update wrap_memcpy.cc

* Update wrap_memcpy.cc
pull/25860/head
bcoopers 4 years ago committed by GitHub
parent a44bafec08
commit 743055193a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/core/lib/gpr/wrap_memcpy.cc

@ -28,7 +28,8 @@
extern "C" {
#ifdef __linux__
#if defined(__x86_64__) && !defined(GPR_MUSL_LIBC_COMPAT)
#if defined(__x86_64__) && !defined(GPR_MUSL_LIBC_COMPAT) && \
!defined(__ANDROID__)
__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
void* __wrap_memcpy(void* destination, const void* source, size_t num) {
return memcpy(destination, source, num);

Loading…
Cancel
Save