diff options
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/crt0.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 0be6648fb..c724770d7 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,9 @@ 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. 2004-05-03 Corinna Vinschen <corinna@vinschen.de> diff --git a/winsup/cygwin/crt0.c b/winsup/cygwin/crt0.c index 52ba7bd34..48cafd5e1 100644 --- a/winsup/cygwin/crt0.c +++ b/winsup/cygwin/crt0.c @@ -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"); |