From 9d2445fb8581b375b903e537f60fe0278ddc2e82 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 28 Mar 2007 22:50:26 +0000 Subject: 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".) --- libc/sysdeps/linux/powerpc/crt1.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/powerpc/crt1.S') 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__ -- cgit v1.2.3