[Buildroot] [PATCH] gcc: Enable __cxa_atexit for final GCC

Alexey Brodkin alexey.brodkin at synopsys.com
Thu Nov 15 10:22:35 UTC 2018

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 [1]:
> > -------------------------->8----------------------
> > --enable-__cxa_atexit
> > 
> >     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?


More information about the buildroot mailing list