From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118995 invoked by alias); 23 Jul 2015 18:41:01 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 118973 invoked by uid 89); 23 Jul 2015 18:41:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f49.google.com Received: from mail-la0-f49.google.com (HELO mail-la0-f49.google.com) (209.85.215.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 23 Jul 2015 18:40:59 +0000 Received: by lahe2 with SMTP id e2so441012lah.1 for ; Thu, 23 Jul 2015 11:40:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=c+ALwedtvqcqkv43y6jESaP51hwgbvBUfUw1czkF5zc=; b=aLIEWBsKQQC6G8PbpV2e50G7h987dfp7CvBdMCvZAhFF3Hg+GgsLHCQ5FijiQxXK57 zcAvxoJ1XuGe0bvA38TXC1dDbg7odFzuI6CXx09QsW5MiuQGcfbcGBYS5m0rOKH7pM+Y +t6oH3e+7/ut4qoaSHC6Br0Lc/VliaIqtxxdIkzbryh9WPN+dtfDzCtssdbGH0BFlw07 Cv6wygaJShpBSX0M3D4vuVkAAbqnqLvkp52oeAG4anKtgdisA+IlPhjUg5OrnKwfqHYR V676TX+pA//Pt7sM501u2DP3WDsp6WIZB8iZ7F/ePwbiXLfnEpdtBqKPhr5XJt1Aq869 nA4A== X-Gm-Message-State: ALoCoQnDHAoN2SqKz2hESictA2K6u2IRY6KaXMQ0DkHdoVoDYmO3dOrWNSQCQCLabq4zPc+KOk0G MIME-Version: 1.0 X-Received: by 10.112.8.108 with SMTP id q12mr9488406lba.113.1437676856362; Thu, 23 Jul 2015 11:40:56 -0700 (PDT) Received: by 10.112.170.234 with HTTP; Thu, 23 Jul 2015 11:40:56 -0700 (PDT) Date: Thu, 23 Jul 2015 18:41:00 -0000 Message-ID: Subject: how can I put c++ global destructor in a specific section From: Yuxin Ren To: gcc-help Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00088.txt.bz2 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