summaryrefslogtreecommitdiffstats
path: root/make/stub_includes/platform/glibc-compat-symbols.h
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-04-21 09:01:01 +0200
committerSven Gothel <[email protected]>2013-04-21 09:01:01 +0200
commiteb8ba86c01d502a04dc50150bda5f5b71dc03ca5 (patch)
tree690a97658f7f0b4623a60d09b2fb50291100edc4 /make/stub_includes/platform/glibc-compat-symbols.h
parent04606a7afa8aa06b975bf6fca84517bb311e613b (diff)
glibc-compat-symbols.h: Add __arm__ -> GLIBC_2.4 ; default is now GLIBC_2.2.5 // Still minimum required is GLIBC_2.4!
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)