<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:html="http://www.w3.org/1999/html" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>Ross Burton</title><link>http://www.burtonini.com/blog</link><description>A potted account of Ross' life</description><language>en</language><ttl>60</ttl><dc:creator>Ross Burton</dc:creator><admin:generatorAgent rdf:resource="http://pyblosxom.sourceforge.net/"/><admin:errorReportsTo rdf:resource="mailto:ross@burtonini.com"/><item><title>Dear Interweb: GCC and Arbitrary Binary Sections</title><guid isPermaLink="false">computers/gcc-2007-07-13-12-30</guid><link>http://www.burtonini.com/blog/computers/gcc-2007-07-13-12-30</link><description>Mono/C has this nice feature where arbitrary files can be linked into the final binary, and you can programmatically access ...</description><content:encoded><![CDATA[    <p>
      Mono/C&#9839; has this nice feature where arbitrary files can be linked
      into the final binary, and you can programmatically access them.  I'd like
      to be able to do that in C too, I'm sure it is possible, I just don't know
      an easy way.  I know that if you have a section <tt>foo</tt>, then ld will
      create <tt>__start_foo</tt> and <tt>__stop_foo</tt> symbols which point to
      the start and end of the section, so all I really want is an easy way to
      get ld to use the contents of an arbitrary file (say, <tt>ui.xml</tt>) as
      a section.
    </p>
    <p>
      Anybody know how to do this?  <strong>Update:</strong> thanks to Daniel
      Jacobowitz for giving enough clues to a working, and clean, solution.
      I'll blog this shortly.
    </p>
    <p>
      <small>NP: <cite>The Sound Of A Handshake</cite>, cLOUDDEAD</small>
    </p>
]]></content:encoded><dc:date>2007-07-13T11:30:00Z</dc:date></item></channel></rss>