Is there any way to include binary resources in the linked executable?
I have a binary file which I would like to include verbatim as a binary resource, with both of the following use cases:
1. Take the binary file and place its contents in a desired section of memory. (Obviously it would have to be interpreted in a 16-bit context, either as little- or big-endian 16-bit data, or as zero-extended 8-bit data)
2. Take the binary file and include it somehow in the symbol file, so it does not appear in memory, but is available to applications that can read the .out file. (I'm doing this right now with a few build metadata items using .dwtag and .dwattr in assembly code.
I can use .c or .cpp or .asm files and compile or assemble them, but this takes source code and converts to binary. I already have binary data, and don't want to have to turn it into source code just so that I can compile/assemble it into the build process.