소스 검색

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 년 전
부모
커밋
9d2445fb85
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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__