PATCH: Reguire __cxa_atexit for ext/{new, throw}_allocator/deallocate_global.cc
Paolo Carlini
paolo.carlini@oracle.com
Wed Feb 24 14:47:00 GMT 2010
Hi,
> I haven't yet read up on the semantics of __cxa_atexit, but looking
> through the OpenSolaris sources
>
> http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/common/i386/crt1.s#101
>
> I found that atexit() has a hook for a _get_exit_frame_monitor()
> function with a reference to the C++ runtime. It's most likely possible
> to use this to provide a __cxa_atexit() replacement in libgcc, and
> perhaps get Sun to implement (or accept an implementation) of
> __cxa_atexit() into their libc to fix the problem once and for all.
>
If you could further investigate this, it would be great. Thanks for the
analysis, anyway.
> Ok for mainline?
>
Yes, thanks.
Paolo.
More information about the Libstdc++
mailing list