This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Figuring out start and end of sections
- From: Felipe Balbi <me at felipebalbi dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 13 Apr 2010 20:40:43 +0300
- Subject: Figuring out start and end of sections
- Reply-to: me at felipebalbi dot com
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 "<section name>")) 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