summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMiles Bader <miles@lsi.nec.co.jp>2002-04-17 06:30:14 +0000
committerMiles Bader <miles@lsi.nec.co.jp>2002-04-17 06:30:14 +0000
commit1410cc538277a4b4811b63e0442880f69df79c96 (patch)
tree92f49da04efb0eb3c2c158b3d84f6f69d3285579 /libc
parent2ca01addd735883c66ce5a78c37b212d59153ae8 (diff)
Just tail-call __uClibc_main. There's no real point to calling abort if
exit failed, and abort drags in some unecessary grot.
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/v850/crt0.S6
1 files changed, 2 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/v850/crt0.S b/libc/sysdeps/linux/v850/crt0.S
index b4da96035..e6c442776 100644
--- a/libc/sysdeps/linux/v850/crt0.S
+++ b/libc/sysdeps/linux/v850/crt0.S
@@ -45,11 +45,9 @@ C_ENTRY(start):
// Load GP
mov hilo(C_SYMBOL_NAME(_gp)), gp
- // call uclibc's startup routine
- jarl C_SYMBOL_NAME(__uClibc_main), lp
+ // tail-call uclibc's startup routine
+ jr C_SYMBOL_NAME(__uClibc_main)
- // should never get here....
- jr C_SYMBOL_NAME(abort)
/* Stick in a dummy reference to `main', so that if an application
is linking when the `main' function is in a static library (.a)