[uClibc-cvs] svn commit: trunk/uClibc/libc/sysdeps/linux/powerpc

jocke at uclibc.org jocke at uclibc.org
Thu May 26 08:43:31 UTC 2005


Author: jocke
Date: 2005-05-26 02:43:30 -0600 (Thu, 26 May 2005)
New Revision: 10409

Log:
Fix "off by one" bug.


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	2005-05-26 06:23:40 UTC (rev 10408)
+++ trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S	2005-05-26 08:43:30 UTC (rev 10409)
@@ -66,15 +66,15 @@
 	mr	r9,r7 /* Pass _dl_fini from ldso or NULL if statically linked */
 	/* Ok, now run uClibc's main() -- shouldn't return */
 # ifdef L_Scrt1
-	lwz	r6,_init at got(r31)
-	lwz	r7,_fini at got(r31)
+	lwz	r7,_init at got(r31)
+	lwz	r8,_fini at got(r31)
 	lwz	r3,main at got(r31)
 	b	__uClibc_start_main at plt
 # else
-	lis     r6,_init at ha	# load top 16 bits
-	addi    r6,r6,_init at l	# load bottom 16 bits
-	lis     r7,_fini at ha	# load top 16 bits
-	addi    r7,r7,_fini at l	# load bottom 16 bits
+	lis     r7,_init at ha	# load top 16 bits
+	addi    r7,r7,_init at l	# load bottom 16 bits
+	lis     r8,_fini at ha	# load top 16 bits
+	addi    r8,r8,_fini at l	# load bottom 16 bits
 	lis     r3,main at ha	# load top 16 bits
 	addi    r3,r3,main at l	# load bottom 16 bits
 	b	__uClibc_start_main




More information about the uClibc-cvs mailing list