diff options
author | Christopher Faylor <me@cgf.cx> | 2008-08-01 19:12:49 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2008-08-01 19:12:49 +0000 |
commit | b23b171641332bb24736274825e558175b1acf13 (patch) | |
tree | 06819fed79a28367844dd8d83ebc6f2ff6608a5c /winsup/cygwin/dcrt0.cc | |
parent | 3462d736b64e2601971fb185cbf83cb8828208c3 (diff) | |
download | newlib-b23b171641332bb24736274825e558175b1acf13.zip newlib-b23b171641332bb24736274825e558175b1acf13.tar.gz newlib-b23b171641332bb24736274825e558175b1acf13.tar.bz2 |
* dcrt0.cc (dll_crt0_1): Add a symbol denoting return from call to main().
* exceptions.cc (stack_info::walk): Stop walking the stack when we hit
_cygwin_exit_return rather than just blindly stopping when PC becomes zero.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 6b2d283..e37cbec 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -933,6 +933,10 @@ dll_crt0_1 (void *) ld_preload (); if (user_data->main) cygwin_exit (user_data->main (__argc, __argv, *user_data->envptr)); + __asm__ (" \n\ + .global __cygwin_exit_return \n\ +__cygwin_exit_return: \n\ +"); } extern "C" void __stdcall |