summaryrefslogtreecommitdiffstats
path: root/make/stub_includes/platform/glibc-compat-symbols.h
diff options
context:
space:
mode:
Diffstat (limited to 'make/stub_includes/platform/glibc-compat-symbols.h')
-rw-r--r--make/stub_includes/platform/glibc-compat-symbols.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/make/stub_includes/platform/glibc-compat-symbols.h b/make/stub_includes/platform/glibc-compat-symbols.h
index 482e232..135a8d6 100644
--- a/make/stub_includes/platform/glibc-compat-symbols.h
+++ b/make/stub_includes/platform/glibc-compat-symbols.h
@@ -2,12 +2,22 @@
#define __GLIBC_COMPAT_SYMBOLS_H__ 1
/**
- * add other architecures below
+ *
+ * Note: JogAmp's minimum GLIBC is 2.4 due to '__stack_chk_fail' (stack overflow checking)
+ *
+ * GLIBC 2.4 - March 2006 - Standard for LSB 4.0, Used in SLES 10
+ *
+ * We could add compile/link option '-fno-stack-protector', however stack protection seems reasonable
+ * and a pre 2006 distribution a bit too 'far fetched' for our multimedia bindings anyway.
+ *
+ * Check build-in macro definitions via 'gcc -dM -E - < /dev/null'
*/
-#ifdef __amd64__
+#if defined(__arm__)
+ #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.4");
+#elif defined(__amd64__)
#define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.2.5");
#else
- #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.0");
+ #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.2.5");
#endif /*__amd64__*/
GLIBC_COMPAT_SYMBOL(memcpy)