svn commit: trunk/uClibc/libc/sysdeps/linux/powerpc
landley at uclibc.org
landley at uclibc.org
Wed Mar 28 22:50:27 UTC 2007
Author: landley
Date: 2007-03-28 15:50:26 -0700 (Wed, 28 Mar 2007)
New Revision: 18270
Log:
Make the code match the comments. (I narrowed down the bug, Khem Raj
pointed out the solution. This fixes a segfault for me on exit from a
statically linked "hello world".)
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-28 22:19:46 UTC (rev 18269)
+++ trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S 2007-03-28 22:50:26 UTC (rev 18270)
@@ -74,7 +74,7 @@
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
+ mr r7,r3 /* Pass _dl_fini from ldso or NULL if statically linked
Note: using r3 instead of r7, since linux 2.6 clobbers r7 */
/* Ok, now run uClibc's main() -- shouldn't return */
#ifdef __PIC__
More information about the uClibc-cvs
mailing list