[uClibc-cvs] svn commit: trunk/uClibc/ldso: include ldso

sjhill at uclibc.org sjhill at uclibc.org
Wed Apr 27 21:35:25 UTC 2005


Author: sjhill
Date: 2005-04-27 15:35:24 -0600 (Wed, 27 Apr 2005)
New Revision: 10192

Log:
Get rid of extern references to ldso variables.


Modified:
   trunk/uClibc/ldso/include/ldso.h
   trunk/uClibc/ldso/ldso/ldso.c


Changeset:
Modified: trunk/uClibc/ldso/include/ldso.h
===================================================================
--- trunk/uClibc/ldso/include/ldso.h	2005-04-27 21:00:48 UTC (rev 10191)
+++ trunk/uClibc/ldso/include/ldso.h	2005-04-27 21:35:24 UTC (rev 10192)
@@ -42,8 +42,6 @@
 extern char *_dl_preload;              /* Things to be loaded before the libs */
 extern char *_dl_ldsopath;             /* Where the shared lib loader was found */
 extern const char *_dl_progname;       /* The name of the executable being run */
-extern unsigned char *_dl_malloc_addr; /* Lets _dl_malloc use the already allocated memory page */
-extern unsigned char *_dl_mmap_zero;   /* Also used by _dl_malloc */
 extern int _dl_secure;                 /* Are we dealing with setuid stuff? */
 extern size_t _dl_pagesize;            /* Store the page size for use later */
 extern const char *_dl_progname;       /* The name of the shared library loader */

Modified: trunk/uClibc/ldso/ldso/ldso.c
===================================================================
--- trunk/uClibc/ldso/ldso/ldso.c	2005-04-27 21:00:48 UTC (rev 10191)
+++ trunk/uClibc/ldso/ldso/ldso.c	2005-04-27 21:35:24 UTC (rev 10192)
@@ -75,8 +75,8 @@
 {
 }
 
-unsigned char *_dl_malloc_addr = 0;	/* Lets _dl_malloc use the already allocated memory page */
-unsigned char *_dl_mmap_zero   = 0;	/* Also used by _dl_malloc */
+static unsigned char *_dl_malloc_addr = 0;	/* Lets _dl_malloc use the already allocated memory page */
+static unsigned char *_dl_mmap_zero   = 0;	/* Also used by _dl_malloc */
 
 static struct elf_resolve **init_fini_list;
 static int nlist; /* # items in init_fini_list */




More information about the uClibc-cvs mailing list