summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-06 00:45:58 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-06 00:45:58 +0000
commit142d965177514ca28cd7536bb2c394485ec2c563 (patch)
tree4d27836824c7ffba05f9b35217485a37a0567495 /libc
parentbd3fadcde893b0428253474b85431ab124d8b531 (diff)
Just in case, crash if somehow `exit' returns anyways
-Erik
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/i386/crt0.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/i386/crt0.S b/libc/sysdeps/linux/i386/crt0.S
index 05d2704ba..3623fe821 100644
--- a/libc/sysdeps/linux/i386/crt0.S
+++ b/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)