Browse Source

I was an idiot and put _fini into the wrong register. Duh.
This patch from David Meggy fixes it...

Eric Andersen 21 years ago
parent
commit
21796dff50
1 changed files with 2 additions and 3 deletions
  1. 2 3
      libc/sysdeps/linux/arm/crt0.S

+ 2 - 3
libc/sysdeps/linux/arm/crt0.S

@@ -84,9 +84,8 @@ _start:
 	ldr r3, =_init
 
 	/* Push _fini onto the stack as the final argument to main() */
-	stmfd sp!, {r0}
-	ldr a1, =_fini
-	stmfd sp!, {r0}
+	ldr r4, =_fini
+	stmfd sp!, {r4}
 
 	/* Ok, now run uClibc's main() -- shouldn't return */
 	bl	__uClibc_start_main