summaryrefslogtreecommitdiff
path: root/ldso/include/dl-string.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-04-13 10:54:39 +0000
committerEric Andersen <andersen@codepoet.org>2005-04-13 10:54:39 +0000
commit7ff0090286da18d23e87e31aeb04a810f4785729 (patch)
tree454cf85fdac4f02b8f88ed50e158659e2b63dbb7 /ldso/include/dl-string.h
parent08bfa39347852abda6be0478735dedd03b196be5 (diff)
On some wierd arches (i.e. mips), none of the early debug stuff
works at all, so disable the whole lot.
Diffstat (limited to 'ldso/include/dl-string.h')
-rw-r--r--ldso/include/dl-string.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ldso/include/dl-string.h b/ldso/include/dl-string.h
index cd2d70120..0637a36e7 100644
--- a/ldso/include/dl-string.h
+++ b/ldso/include/dl-string.h
@@ -257,6 +257,15 @@ static inline char *_dl_simple_ltoahex(char * local, unsigned long i)
/* The following macros may be used in dl-startup.c to debug
* ldso before ldso has fixed itself up to make function calls */
+/* On some (wierd) arches, none of this stuff works at all, so
+ * disable the whole lot... */
+#if defined(__mips__)
+
+#define SEND_STDERR(X)
+#define SEND_ADDRESS_STDERR(X, add_a_newline)
+#define SEND_NUMBER_STDERR(X, add_a_newline)
+
+#else
/* On some arches constant strings are referenced through the GOT.
* This requires that load_addr must already be defined... */
@@ -307,6 +316,7 @@ static inline char *_dl_simple_ltoahex(char * local, unsigned long i)
} while ((X) > 0); \
_dl_write (2, tmp2, tmp1 - tmp2 + sizeof(tmp) - 1); \
};
+#endif
#endif