linking arbitrary data using GCC ARM toolchain
I want to link in raw binary data. I'd like to either put it at a particular address, or have it link to a symbol (char* mydata, for instance) I have defined in code. Since it's not an obj file, I can't simply link it in. A similar post ( Include binary file with GNU ld linker script ) suggests using objcopy with the -B bfdarch option. objcopy responds with "archictecture bfdarch unknown". Yet another answer suggests transforming the object into a custom LD script and then include that from the main LD script. At this point, I may as well just be using a C include file (which is what I am