title: C/C++ with GCC: Statically add resource files to executable/library
body: <p>Does anybody have an idea how to statically compile any resource file right into the executable or the shared library file using GCC?</p>
  <p>For example I'd like to add image files that never change (and if they do, I'd have to replace the file anyway) and wouldn't want them to lie around in the file system.</p>
  <p>If this is possible (and I think it is because Visual C++ for Windows can do this, too), how can I load the files which are stored in the own binary? Does the executable parse itself, find the file and extract the data out of it?</p>
  <p>Maybe there's an option for GCC which I haven't seen yet. Using search engines didn't really spit out the right stuff.</p>
  <p>I would need this to work for shared libraries and normal ELF-executables.</p>