This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
how can I put c++ global destructor in a specific section
- From: Yuxin Ren <ryx at gwmail dot gwu dot edu>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Thu, 23 Jul 2015 14:40:56 -0400
- Subject: how can I put c++ global destructor in a specific section
- Authentication-results: sourceware.org; auth=none
Hi,
I know after gcc 4.8, the global constructor is put in the init_array section.
But I don't know which section hold the destructors. And the
fini_array does not hold destructors.
Can I put those global destructor in a specific section?
Thanks a lot
Yuxin