From 142d965177514ca28cd7536bb2c394485ec2c563 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 6 Aug 2002 00:45:58 +0000 Subject: Just in case, crash if somehow `exit' returns anyways -Erik --- libc/sysdeps/linux/i386/crt0.S | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc/sysdeps/linux/i386') 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) -- cgit v1.2.3