bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd ld behaviour starting at version 2.22


From: Alan Modra
Subject: Re: Odd ld behaviour starting at version 2.22
Date: Tue, 4 Nov 2014 09:54:49 +1030
User-agent: Mutt/1.5.23 (2014-03-12)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]