This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Include binary file?
- From: Mark Ainsworth <mkea at cypress dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 20 May 2010 09:44:02 -0700
- Subject: Include binary file?
Hello, at link time I would like to include the contents of a binary
file into the output executable, in a separate segment. In my code I
would then read this as an array. I've done this before with other
compilers / linkers, but not with gcc. Can you show me the directives
to do this?
Thanks,
Mark Ainsworth