[uClibc-cvs] CVS update of uClibc/ldso/ldso (ldso.c)

Joakim Tjernlund jocke at codepoet.org
Tue Aug 10 10:04:36 UTC 2004


    Date: Tuesday, August 10, 2004 @ 04:04:36
  Author: jocke
    Path: /var/cvs/uClibc/ldso/ldso

Modified: ldso.c (1.103 -> 1.104)

Revmoved _dl_brkp and _dl_envp. They are not needed anymore. 


Index: uClibc/ldso/ldso/ldso.c
diff -u uClibc/ldso/ldso/ldso.c:1.103 uClibc/ldso/ldso/ldso.c:1.104
--- uClibc/ldso/ldso/ldso.c:1.103	Mon Aug  9 02:11:53 2004
+++ uClibc/ldso/ldso/ldso.c	Tue Aug 10 04:04:35 2004
@@ -41,8 +41,6 @@
 char *_dl_library_path         = 0;		/* Where we look for libraries */
 char *_dl_preload              = 0;		/* Things to be loaded before the libs */
 char *_dl_ldsopath             = 0;		/* Location of the shared lib loader */
-unsigned long *_dl_brkp        = 0;		/* The end of the data segment for brk and sbrk */
-unsigned long *_dl_envp        = 0;		/* The environment address */
 int _dl_secure                 = 1;		/* Are we dealing with setuid stuff? */
 int _dl_errno                  = 0;     /* We can't use the real errno in ldso */
 size_t _dl_pagesize            = 0;		/* Store the page size for use later */
@@ -611,18 +609,6 @@
 	   dynamicly linked if we are using ld.so.1, so we have to look
 	   up each symbol individually. */
 
-
-	_dl_brkp = (unsigned long *) (intptr_t) _dl_find_hash("__curbrk", _dl_symbol_tables, 0);
-
-	if (_dl_brkp) {
-		*_dl_brkp = brk_addr;
-	}
-	_dl_envp = (unsigned long *) (intptr_t) _dl_find_hash("__environ", _dl_symbol_tables, 0);
-
-	if (_dl_envp) {
-		*_dl_envp = (unsigned long) envp;
-	}
-
 #ifndef FORCE_SHAREABLE_TEXT_SEGMENTS
 	{
 		unsigned int j;



More information about the uClibc-cvs mailing list