Browse Source

Just tail-call __uClibc_main. There's no real point to calling abort if
exit failed, and abort drags in some unecessary grot.

Miles Bader 23 years ago
parent
commit
1410cc5382
1 changed files with 2 additions and 4 deletions
  1. 2 4
      libc/sysdeps/linux/v850/crt0.S

+ 2 - 4
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)