From 6489e38ae8d86b1a80336c20774fc9b82313cef3 Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Thu, 25 May 2023 08:52:45 +0200 Subject: glibc-compat-symbols.h: skip versioning on PPC64/PPC64LE --- make/stub_includes/platform/glibc-compat-symbols.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/make/stub_includes/platform/glibc-compat-symbols.h b/make/stub_includes/platform/glibc-compat-symbols.h index d8d0d17..fc19543 100644 --- a/make/stub_includes/platform/glibc-compat-symbols.h +++ b/make/stub_includes/platform/glibc-compat-symbols.h @@ -26,6 +26,11 @@ #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.4"); */ #define GLIBC_COMPAT_SYMBOL(FFF) + #elif defined(__PPC64__) + /* PPC64 has multiple versions of memcpy from glibc 2.3 and onwards + * while PPC64LE only has one (introduced in glibc 2.17). PPC64LE is + * the more common of the two now so skip versioning. */ + #define GLIBC_COMPAT_SYMBOL(FFF) #elif defined(__amd64__) #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.2.5"); #else @@ -41,6 +46,11 @@ #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.4"); */ #define GLIBC_COMPAT_SYMBOL(FFF) + #elif defined(__PPC64__) + /* PPC64 has multiple versions of memcpy from glibc 2.3 and onwards + * while PPC64LE only has one (introduced in glibc 2.17). PPC64LE is + * the more common of the two now so skip versioning. */ + #define GLIBC_COMPAT_SYMBOL(FFF) #elif defined(__amd64__) #define GLIBC_COMPAT_SYMBOL(FFF) asm(".symver " #FFF "," #FFF "@GLIBC_2.2.5"); #else -- cgit v1.2.3