Răsfoiți Sursa

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".)

Rob Landley 18 ani în urmă
părinte
comite
9d2445fb85
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      libc/sysdeps/linux/powerpc/crt1.S

+ 1 - 1
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__