summaryrefslogtreecommitdiff
path: root/ldso/include
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-12-11 12:23:37 +0000
committerEric Andersen <andersen@codepoet.org>2004-12-11 12:23:37 +0000
commita56073a28beba540347846a193d25fd61584c2af (patch)
tree5c22cb4bc0d147e50df51730aa27adf172c15ae7 /ldso/include
parentfb6f30cabdaa0ed74d0f7ec9d1feb137260e37aa (diff)
Partial commit of a patch from Alexandre Oliva:
Here's an updated version of the patch I posted about a month ago. It leaves -nostdinc alone, and uses -print-file-name=include instead of -print-search-dirs to figure out where GCC's internal headers are. Please let me know whether there are any portions of this patch you'd like me to break into smaller pieces, to rework, or to give up trying to get into uClibc :-) Thanks,
Diffstat (limited to 'ldso/include')
-rw-r--r--ldso/include/dl-string.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ldso/include/dl-string.h b/ldso/include/dl-string.h
index c428634d2..9426860cc 100644
--- a/ldso/include/dl-string.h
+++ b/ldso/include/dl-string.h
@@ -262,6 +262,14 @@ static inline char *_dl_simple_ltoahex(char * local, unsigned long i)
#define SEND_STDERR(X) _dl_write(2, X, _dl_strlen(X));
#endif
+/* Some targets may have to override this to something that doesn't
+ reference constant strings through the GOT. This macro should be
+ preferred over SEND_STDERR for constant strings before we complete
+ bootstrap. */
+#ifndef SEND_EARLY_STDERR
+# define SEND_EARLY_STDERR(S) SEND_STDERR(S)
+#endif
+
#define SEND_ADDRESS_STDERR(X, add_a_newline) { \
char tmp[22], *tmp1; \
_dl_memset(tmp, 0, sizeof(tmp)); \