diff options
Diffstat (limited to 'libc')
| -rw-r--r-- | libc/sysdeps/linux/i386/crt0.S | 2 | 
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)  | 
