summaryrefslogtreecommitdiff
path: root/ldso/ldso/linuxelf.h
diff options
context:
space:
mode:
Diffstat (limited to 'ldso/ldso/linuxelf.h')
-rw-r--r--ldso/ldso/linuxelf.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/ldso/ldso/linuxelf.h b/ldso/ldso/linuxelf.h
index 5a6e8b85f..26d3937c4 100644
--- a/ldso/ldso/linuxelf.h
+++ b/ldso/ldso/linuxelf.h
@@ -31,7 +31,15 @@ extern int _dl_linux_resolve(void);
#ifndef SVR4_BUGCOMPAT
-#define SVR4_BUGCOMPAT 1
+# ifdef FORCE_SHAREABLE_TEXT_SEGMENTS
+# define SVR4_BUGCOMPAT 0
+# else
+# define SVR4_BUGCOMPAT 1
+# endif
+#else
+# ifdef FORCE_SHAREABLE_TEXT_SEGMENTS
+# error option SVR4_BUGCOMPAT combined with option FORCE_SHAREABLE_TEXT_SEGMENTS makes no sense
+# endif
#endif
#if ELF_CLASS == ELFCLASS32