[Buildroot] [PATCH] gcc: Enable __cxa_atexit for final GCC
romain.naour at smile.fr
Thu Nov 15 10:35:03 UTC 2018
Le 15/11/2018 à 11:22, Alexey Brodkin a écrit :
> Hi Nicolas,
> On Thu, 2018-11-15 at 11:17 +0100, Nicolas Cavallari wrote:
>> On 15/11/2018 05:01, Alexey Brodkin wrote:
>>> This is what GCC manual says :
>>> Define if you want to use __cxa_atexit, rather than atexit,
>>> to register C++ destructors for local statics and global objects.
>>> This is essential for fully standards-compliant handling of destructors,
>>> but requires __cxa_atexit in libc.
>> For what is is worth, we enabled cxa_atexit in BR2_EXTRA_GCC_CONFIG_OPTIONS five
>> years ago, to fix a crash that occurred when catching exceptions and logging
>> them using a log system that used global variables. But we couldn't remember
>> the details.
> So you've been using BR with cxa_atexit since then, right?
> Or you mean it was enabled in upstream BR for some time and then reverted back to disabled state?
--disable-__cxa_atexit is present since 2002/2003 in Buildroot, I'm not sure the
reason for disabling atexit is still relevant.
> buildroot mailing list
> buildroot at busybox.net
More information about the buildroot