From 1410cc538277a4b4811b63e0442880f69df79c96 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 17 Apr 2002 06:30:14 +0000 Subject: Just tail-call __uClibc_main. There's no real point to calling abort if exit failed, and abort drags in some unecessary grot. --- libc/sysdeps/linux/v850/crt0.S | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libc/sysdeps/linux/v850/crt0.S') 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) -- cgit v1.2.3