http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27692
--- Comment #12 from Jason Merrill <jason at gcc dot gnu.org> 2011-10-11 14:38:42 UTC --- (In reply to comment #11) > what I'm suggesting is building the list of destructors dynamically for > executables and shared libraries. That sounds a lot like __cxa_atexit.