http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46770
--- Comment #16 from Mark Mitchell <mark at codesourcery dot com> 2010-12-11 18:50:11 UTC --- On 12/11/2010 10:47 AM, hjl.tools at gmail dot com wrote: > Linker supports sorting .ctors.NNNNN and .init_array.NNNN. > Within .ctors.NNNNN and .init_array.NNNN, the order is defined. > And ctors.NNNNN will be called before .init_array.NNNN. Really? I thought all of ctors.NNNN got sorted into a single big block. If the GNU linker (and GOLD) know how to interleave .ctors.NNNNN with .init_array.NNNNN so that constructor priority is honored even when mixing .ctors and .init_array, then I think we're OK.