http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60588
Charles Lohr <charles at cnlohr dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |charles at cnlohr dot com --- Comment #1 from Charles Lohr <charles at cnlohr dot com> --- I am frustrated by this as well, and was hoping that since both AVRs and ARMs are bare metal systems, it could be done in a similar way. With ARMs, the constructors are placed into a list that can be manually executed after main() starts. I.e. constructor_t *fn = _init_array_start; while(fn < _init_array_end) { (*fn++)(); }