From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21808 invoked by alias); 13 Apr 2010 17:40:06 -0000 Received: (qmail 21798 invoked by uid 22791); 13 Apr 2010 17:40:05 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from ns1.siteground211.com (HELO serv01.siteground211.com) (209.62.36.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Apr 2010 17:40:00 +0000 Received: from [91.154.117.150] (port=25845 helo=gandalf) by serv01.siteground211.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1O1k5l-00030b-Ot for gcc-help@gcc.gnu.org; Tue, 13 Apr 2010 12:40:06 -0500 Date: Tue, 13 Apr 2010 17:40:00 -0000 From: Felipe Balbi To: gcc-help@gcc.gnu.org Subject: Figuring out start and end of sections Message-ID: <20100413174042.GB3531@gandalf> Reply-To: me@felipebalbi.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes 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 X-SW-Source: 2010-04/txt/msg00103.txt.bz2 Hi all, is there any way to figure out where a section starts and ends ? I added a specific section to my program using __attribute__((section "
")) and now I want to figure out where that section starts so I can iterate over it and call the function pointers I'm adding to it. Do I need a specific linker script to achieve that or does the default scripts give me possibility to find that out ? -- balbi