title: How do you get the start and end addresses of a custom ELF section?
body: <p>I'm working in C on Linux. I've seen the usage of of the gcc <a href="http://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html" rel="noreferrer"><code>__section__</code> attribute</a> (especially in the Linux kernel) to collect data (usually function pointers) into custom ELF sections. How is the "stuff" that gets put in those custom sections retrieved and used?</p>