From ea3903eb7b862092d948edf8b568e8b57b06758f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 25 Jun 2005 08:41:38 +0000 Subject: create some DEBUG macros for the ld debug early --- ldso/include/dl-string.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ldso/include') diff --git a/ldso/include/dl-string.h b/ldso/include/dl-string.h index 05cc65c1b..a52f83f36 100644 --- a/ldso/include/dl-string.h +++ b/ldso/include/dl-string.h @@ -282,7 +282,7 @@ static inline char *_dl_simple_ltoahex(char * local, unsigned long i) const char *tmp1 = (X); \ CONSTANT_STRING_GOT_FIXUP(tmp1); \ _dl_write(2, tmp1, _dl_strlen(tmp1)); \ -}; +} #define SEND_ADDRESS_STDERR(ADR, add_a_newline) \ { \ @@ -321,4 +321,12 @@ static inline char *_dl_simple_ltoahex(char * local, unsigned long i) } #endif +#ifdef __SUPPORT_LD_DEBUG_EARLY__ +# define SEND_STDERR_DEBUG(X) SEND_STDERR(X) +# define SEND_ADDRESS_STDERR_DEBUG(X, add_a_newline) SEND_ADDRESS_STDERR(X, add_a_newline) +#else +# define SEND_STDERR_DEBUG(X) +# define SEND_ADDRESS_STDERR_DEBUG(X, add_a_newline) +#endif + #endif -- cgit v1.2.3