public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Figuring out start and end of sections
@ 2010-04-13 17:40 Felipe Balbi
  2010-04-13 17:44 ` Andrew Haley
  2010-04-14  0:24 ` Figuring " Ian Lance Taylor
  0 siblings, 2 replies; 6+ messages in thread
From: Felipe Balbi @ 2010-04-13 17:40 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-04-14  8:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-13 17:40 Figuring out start and end of sections Felipe Balbi
2010-04-13 17:44 ` Andrew Haley
2010-04-14  5:08   ` Figurig " Felipe Balbi
2010-04-14  8:49     ` Andrew Haley
2010-04-14  0:24 ` Figuring " Ian Lance Taylor
2010-04-14  8:49   ` Andrew Haley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).