[git commit ldso-future] ldso: make _dl_debug_* static

Peter S. Mazinger ps.m at gmx.net
Wed Mar 30 11:53:36 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=08a8048096e28b2a0c1a54d9146e445c580500a7
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/ldso-future

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 ldso/include/ldso.h  |    7 -------
 ldso/ldso/dl-debug.c |   16 ++++++++--------
 2 files changed, 8 insertions(+), 15 deletions(-)

diff --git a/ldso/include/ldso.h b/ldso/include/ldso.h
index 9fd5749..874e0db 100644
--- a/ldso/include/ldso.h
+++ b/ldso/include/ldso.h
@@ -61,13 +61,6 @@ extern void ** __attribute__ ((const)) _dl_initial_error_catch_tsd (void);
 
 #ifdef __SUPPORT_LD_DEBUG__
 extern char *_dl_debug;
-extern char *_dl_debug_symbols;
-extern char *_dl_debug_move;
-extern char *_dl_debug_reloc;
-extern char *_dl_debug_detail;
-extern char *_dl_debug_nofixups;
-extern char *_dl_debug_bindings;
-extern int   _dl_debug_file;
 # define __dl_debug_dprint(fmt, args...) \
 	_dl_dprintf(_dl_debug_file, "%s:%i: " fmt, __FUNCTION__, __LINE__, ## args);
 # define _dl_if_debug_dprint(fmt, args...) \
diff --git a/ldso/ldso/dl-debug.c b/ldso/ldso/dl-debug.c
index 47e4c2f..19f3eef 100644
--- a/ldso/ldso/dl-debug.c
+++ b/ldso/ldso/dl-debug.c
@@ -45,14 +45,14 @@
 #include <dl-debug.h>
 
 #if defined IS_IN_rtld || !defined SHARED
-char *_dl_debug           = NULL;
-char *_dl_debug_symbols   = NULL;
-char *_dl_debug_move      = NULL;
-char *_dl_debug_reloc     = NULL;
-char *_dl_debug_detail    = NULL;
-char *_dl_debug_nofixups  = NULL;
-char *_dl_debug_bindings  = NULL;
-int   _dl_debug_file      = 2;
+char *_dl_debug			= NULL;
+static char *_dl_debug_symbols	= NULL;
+static char *_dl_debug_move	= NULL;
+static char *_dl_debug_reloc	= NULL;
+static char *_dl_debug_detail	= NULL;
+static char *_dl_debug_nofixups	= NULL;
+static char *_dl_debug_bindings	= NULL;
+static int   _dl_debug_file	= 2;
 #endif
 
 static const char *_dl_reltypes(int type)
-- 
1.7.3.4



More information about the uClibc-cvs mailing list