This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Global destructors and .dtors ?
- From: Vladimir <kv11111 at mail dot ru>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 19 Mar 2005 15:36:50 +0300
- Subject: Global destructors and .dtors ?
- Organization: MIPT
- Reply-to: kv11111 at mail dot ru
Hello All !
I've observed that my gcc-3.3 handles global destructors using
__cxa_atexit() rather than using .dtors section. In my case I have not
__cxa_atexit() function, but I do have __do_global_dtors_aux from
crtstuff.c which handles .dtors section.
Can I somehow tell gcc to add global destructors to .dtors section ?
One more question: what is __static_initialization_and_destruction_0
function ? Can I disable generation of this function ?
In advance thanks a lot for your help.
--
Best regards
Vladimir