diff options
Diffstat (limited to 'make/stub_includes/platform/glibc-compat-symbols.h')
-rw-r--r-- | make/stub_includes/platform/glibc-compat-symbols.h | 10 |
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 |