Эх сурвалжийг харах

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

Eric Andersen 23 жил өмнө
parent
commit
21796dff50

+ 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