aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom G. Christensen <[email protected]>2023-05-25 08:52:45 +0200
committerTom G. Christensen <[email protected]>2023-06-07 08:32:22 +0200
commit6489e38ae8d86b1a80336c20774fc9b82313cef3 (patch)
tree0f0dce29677f6582e6263533abf67202be4eef5b
parent0cc17dbd7b9c2e88a3d55dff98867d46fb1e104f (diff)
glibc-compat-symbols.h: skip versioning on PPC64/PPC64LE
-rw-r--r--make/stub_includes/platform/glibc-compat-symbols.h10
1 files changed, 10 insertions, 0 deletions
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