Explorar o código

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

Eric Andersen %!s(int64=23) %!d(string=hai) anos
pai
achega
142d965177
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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)