Browse Source

Get rid of extern references to ldso variables.

"Steven J. Hill" 19 years ago
parent
commit
40648f65b2
2 changed files with 2 additions and 4 deletions
  1. 0 2
      ldso/include/ldso.h
  2. 2 2
      ldso/ldso/ldso.c

+ 0 - 2
ldso/include/ldso.h

@@ -42,8 +42,6 @@ extern char *_dl_library_path;         /* Where we look for libraries */
 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 */

+ 2 - 2
ldso/ldso/ldso.c

@@ -75,8 +75,8 @@ void _dl_debug_state(void)
 {
 }
 
-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 */