svn commit: trunk/uClibc/libc/sysdeps/linux/powerpc

jocke at uclibc.org jocke at uclibc.org
Sat Mar 31 13:36:07 UTC 2007


Author: jocke
Date: 2007-03-31 06:36:07 -0700 (Sat, 31 Mar 2007)
New Revision: 18292

Log:
Update comment regarding passing dl_fini.


Modified:
   trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S	2007-03-31 13:28:15 UTC (rev 18291)
+++ trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S	2007-03-31 13:36:07 UTC (rev 18292)
@@ -74,8 +74,11 @@
 	lwz	r4,0(r9)
 	/* find argv one word offset from the stack pointer */
 	addi	r5,r9,4
-	mr	r8,r3 /* Pass _dl_fini from ldso or NULL if statically linked
-			Note:	 using r3 instead of r7, since linux 2.6 clobbers r7 */
+	mr	r8,r3 /* Pass _dl_fini from ldso or NULL if statically linked */
+		      /* Note: PPC depends on the kernel to zero r3 before */
+		      /* handing over to user space, otherwise static apps */
+		      /* will SEGV during exit() */
+
 	/* Ok, now run uClibc's main() -- shouldn't return */
 #ifdef __PIC__
 	lwz	r6,_init at got(r31)




More information about the uClibc-cvs mailing list