Browse Source

Just in case, crash if somehow `exit' returns anyways
-Erik

Eric Andersen 23 years ago
parent
commit
142d965177
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/sysdeps/linux/i386/crt0.S

+ 2 - 0
libc/sysdeps/linux/i386/crt0.S

@@ -76,6 +76,8 @@ _start:
 
 	/* Ok, now run uClibc's main() -- shouldn't return */
 	call __uClibc_main
+	/* Crash if somehow `exit' returns anyways.  */
+	hlt
 
 /* Stick in a dummy reference to main(), so that if an application
  * is linking when the main() function is in a static library (.a)