[git commit ldso-future 1/1] ldso: hide _dl_strdup, _dl_dprintf and make _dl_getenv, _dl_unsetenv 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=b40023d3d86003392df3ac0086110fdd3d33268a
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 |    6 ++----
 ldso/ldso/ldso.c    |    4 ++--
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/ldso/include/ldso.h b/ldso/include/ldso.h
index 94bf7f6..1d55ef0 100644
--- a/ldso/include/ldso.h
+++ b/ldso/include/ldso.h
@@ -133,11 +133,9 @@ extern void *_dl_malloc(size_t size);
 extern void *_dl_calloc(size_t __nmemb, size_t __size);
 extern void *_dl_realloc(void *__ptr, size_t __size);
 extern void _dl_free(void *);
-extern char *_dl_getenv(const char *symbol, char **envp);
-extern void _dl_unsetenv(const char *symbol, char **envp);
 #ifdef IS_IN_rtld
-extern char *_dl_strdup(const char *string);
-extern void _dl_dprintf(int, const char *, ...);
+extern char *_dl_strdup(const char *string) attribute_hidden;
+extern void _dl_dprintf(int, const char *, ...) attribute_hidden;
 #else
 # include <string.h>
 # define _dl_strdup strdup
diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c
index 420ce78..0dfd901 100644
--- a/ldso/ldso/ldso.c
+++ b/ldso/ldso/ldso.c
@@ -113,7 +113,7 @@ uintptr_t __guard attribute_relro;
 # endif
 #endif
 
-char *_dl_getenv(const char *symbol, char **envp)
+static char *_dl_getenv(const char *symbol, char **envp)
 {
 	char *pnt;
 	const char *pnt1;
@@ -129,7 +129,7 @@ char *_dl_getenv(const char *symbol, char **envp)
 	return 0;
 }
 
-void _dl_unsetenv(const char *symbol, char **envp)
+static void _dl_unsetenv(const char *symbol, char **envp)
 {
 	char *pnt;
 	const char *pnt1;
-- 
1.7.3.4



More information about the uClibc-cvs mailing list