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

vapier at uclibc.org vapier at uclibc.org
Mon Jul 11 22:13:31 UTC 2005


Author: vapier
Date: 2005-07-11 16:13:30 -0600 (Mon, 11 Jul 2005)
New Revision: 10788

Log:
base __rtld_stack_end off of argv instead of args so we dont have to worry about how each arch treats args

Modified:
   trunk/uClibc/ldso/ldso/dl-startup.c


Changeset:
Modified: trunk/uClibc/ldso/ldso/dl-startup.c
===================================================================
--- trunk/uClibc/ldso/ldso/dl-startup.c	2005-07-11 22:08:35 UTC (rev 10787)
+++ trunk/uClibc/ldso/ldso/dl-startup.c	2005-07-11 22:13:30 UTC (rev 10788)
@@ -297,13 +297,8 @@
 	   fixed up by now.  Still no function calls outside of this library ,
 	   since the dynamic resolver is not yet ready. */
 
-	__rtld_stack_end = (void *)args; /* Needs to be after ld.so self relocation */
-	if (*((long *)__rtld_stack_end) != argc) {
-		SEND_STDERR_DEBUG("__rtld_stack_end=");
-		SEND_ADDRESS_STDERR_DEBUG(__rtld_stack_end, 0);
-		SEND_STDERR_DEBUG(" doesn't point to argc=");
-		SEND_ADDRESS_STDERR_DEBUG(&argc, 1);
-	}
+	__rtld_stack_end = (void *)(argv - 1);
+
 	_dl_get_ready_to_run(tpnt, load_addr, auxvt, envp, argv);
 
 




More information about the uClibc-cvs mailing list