瀏覽代碼

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

Eric Andersen 22 年之前
父節點
當前提交
21796dff50
共有 1 個文件被更改,包括 2 次插入3 次删除
  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