summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-03-28 22:50:26 +0000
committerRob Landley <rob@landley.net>2007-03-28 22:50:26 +0000
commit9d2445fb8581b375b903e537f60fe0278ddc2e82 (patch)
treeb756c0210eed6cfd1f6d579e4f24c442f3416f9b
parentfeaab8d4388f46e34e1d8a914d67ffd2da7022cd (diff)
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".)
-rw-r--r--libc/sysdeps/linux/powerpc/crt1.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/powerpc/crt1.S b/libc/sysdeps/linux/powerpc/crt1.S
index 8798849b3..ad46b5434 100644
--- a/libc/sysdeps/linux/powerpc/crt1.S
+++ b/libc/sysdeps/linux/powerpc/crt1.S
@@ -74,7 +74,7 @@ _start:
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__