Diffstat (limited to 'ports/linux/portdefs.h')
1 files changed, 14 insertions, 0 deletions
diff --git a/ports/linux/portdefs.h b/ports/linux/portdefs.h
index 20ad529..60a8cc1 100644
@@ -11,3 +11,17 @@
* causes errors; you have to leave it empty or specify AT_SYMLINK_FOLLOW.
#define PSEUDO_LINK_SYMLINK_BEHAVIOR 0
+/* There were symbol changes that can cause the linker to request
+ * newer versions of glibc, which causes problems occasionally on
+ * older hosts if pseudo is built against a newer glibc and then
+ * run with an older one. Sometimes we can just avoid the symbols,
+ * but memcpy's pretty hard to get away from.
+#define GLIBC_COMPAT_SYMBOL(sym, ver) __asm(".symver " #sym "," #sym "@GLIBC_" #ver)
+#else /* tentatively assume this means x86 */