Re: __cxa_atexit/__cxa_finalize

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

 



Mathieu Lacage <mathieu.lacage@xxxxxxxxx> writes:

> 1) I can't figure out who inserts the calls to __cxa_finalize/atexit.
> I suspect that it's gcc but I can't see which piece of gcc code does
> this. I thought that it would be the gcc/crtstuff.c file but it
> includes only a call to __cxa_finalize from the .fini section and only
> when CRTSTUFF_O is  defined and this does not appear to be defined on
> my platform. (fedora11 x86_64). So, who makes sure that these
> functions are called during .init/.fini ?

The calls to __cxa_atexit are created by gcc itself.  The call is made
by the constructor of the static object.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux