diff options
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/init.cc | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 1417814d7..e07a3a7f9 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2004-04-30 DJ Delorie <dj@redhat.com> + + * init.cc (threadfunc_fe): Hack to make thread stacks always 16 + byte aligned. + 2004-04-21 Yitzchak Scott-Thoennes <sthoenna@efn.org> * syscalls.cc (lseek64): Fix debug_printf format string. diff --git a/winsup/cygwin/init.cc b/winsup/cygwin/init.cc index af8c0ea39..9ba585ecb 100644 --- a/winsup/cygwin/init.cc +++ b/winsup/cygwin/init.cc @@ -27,6 +27,8 @@ HANDLE sync_startup; static void WINAPI threadfunc_fe (VOID *arg) { + (void)__builtin_return_address(1); + asm volatile ("andl $-16,%%esp" ::: "%esp"); _cygtls::call ((DWORD (*) (void *, void *)) (((char **) _tlsbase)[OLDFUNC_OFFSET]), arg); } |