From 21796dff50a323db9ca4f3ad670a05ed2bffa8cf Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 15 Nov 2002 00:52:59 +0000 Subject: I was an idiot and put _fini into the wrong register. Duh. This patch from David Meggy fixes it... --- libc/sysdeps/linux/arm/crt0.S | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libc/sysdeps/linux') diff --git a/libc/sysdeps/linux/arm/crt0.S b/libc/sysdeps/linux/arm/crt0.S index dc0ec87d8..ad4865cc1 100644 --- a/libc/sysdeps/linux/arm/crt0.S +++ b/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 -- cgit v1.2.3