<br><br><div><span class="gmail_quote">On 10/07/07, <b class="gmail_sendername">Bill Crawford</b> <<a href="mailto:billcrawford1970@gmail.com">billcrawford1970@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<span class="q"></span>Even easier, just use ".text" or ".whatever" as a symbol (you'll have to use assembly code, but gcc lets you embed that in C anyway, and most other compilers AFAIK have some mechanism for doing so).
<br></blockquote></div><br>I forgot some detail: if the section name is "representable as a C identifier" then binutils' ld will also create start and end symbols for it: __start_[name] and __stop_[name]. This would be even easier to reference :)
<br><br>