https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117630
R. Diez <rdiez-2006 at rd10 dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WORKSFORME
Status|UNCONFIRMED |RESOLVED
--- Comment #15 from R. Diez <rdiez-2006 at rd10 dot de> ---
I have started using -fno-use-cxa-atexit when building the toolchain (for
libstdc++), which makes this problem go away, as global destructors are no
longer registered with atexit calls.
This is not an ideal solution, because -fno-use-cxa-atexit has its issues, but
it works for my purposes.
I still think there is something iffy with GCC in this area, but I cannot
devote any more time to this issue, so I have decided to close this bug report.