summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-15 00:52:59 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-15 00:52:59 +0000
commit21796dff50a323db9ca4f3ad670a05ed2bffa8cf (patch)
treead539db3cc442375b3f21fa490a58f96ea34d5a9
parent36e67ceff92013237cd965a2a863ed803f3d8155 (diff)
I was an idiot and put _fini into the wrong register. Duh.
This patch from David Meggy fixes it...
-rw-r--r--libc/sysdeps/linux/arm/crt0.S5
1 files changed, 2 insertions, 3 deletions
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