http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56346
--- Comment #3 from John David Anglin <danglin at gcc dot gnu.org> 2013-03-09 21:30:13 UTC --- Created attachment 29631 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29631 .s file Target doesn't have __cxa_thread_atexit or __cxa_atexit, so it won't help to implement __dso_handle. In auto-host.h, we have: #ifndef USED_FOR_TARGET /* #undef DEFAULT_USE_CXA_ATEXIT */ #endif Currently, constructors and destructors are assembled by collect2. Linker options are used to run the constructors/destructors when applications or shared libraries are loaded/unloaded.