Quellcode durchsuchen

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

Eric Andersen vor 23 Jahren
Ursprung
Commit
142d965177
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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)