Global destructors and .dtors ?

Vladimir kv11111@mail.ru
Sun Mar 20 09:32:00 GMT 2005


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



More information about the Gcc-help mailing list