Does anybody have an idea how to statically compile any resource file right into the executable or the shared library file using GCC?
For example I'd like 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.
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?
Maybe there's an option for GCC I haven't seen yet. Using search engines didn't really spit out the right stuff.
I would need this to work for shared libraries and normal ELF-executables.
Any help is appreciated