* crt0.o (mainCRTStartup): 16 byte align stack for main function.

This commit is contained in:
Corinna Vinschen 2004-05-04 14:46:25 +00:00
parent ad7ba32b2d
commit 423ea473f4
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-05-04 Corinna Vinschen <corinna@vinschen.de>
* crt0.o (mainCRTStartup): 16 byte align stack for main function.
2004-05-04 Corinna Vinschen <corinna@vinschen.de>
* path.cc (check_sysfile): Don't scan string twice.

View File

@ -36,6 +36,8 @@ void
mainCRTStartup ()
{
#ifdef __i386__
(void)__builtin_return_address(1);
asm volatile ("andl $-16,%%esp" ::: "%esp");
if (__cygwin_crt0_bp)
asm volatile ("int3");