On Mon, Nov 03, 2014 at 08:34:20PM +0000, Douglas Graham wrote:
> Am I confused about what's actually in the .init_array and
> .fini_array sections?  There is also .ctors and .dtors
> which I thought contains the static ctors and dtors.

.init_array is used by newer versions of gcc to serve the same purpose
as .ctors, but using a different mechanism to run constructor code.
Similarly for .fini_array.  At a guess, your code is making
assumptions about the order in which destructors are run.  If you
google for "g++ static destructor order" you'll find lots of other
people with the same problem.

-- 
Alan Modra
Australia Development Lab, IBM

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to