To link a binary file using Command line, perform the following steps:
- Linker recognizes .bin extension as a binary data input file. If binary file has another extension it may not be recognized correctly by the command line linker.
- Update linker command file (.lcf) and place .BINARY section into memory. Listing1.1 shows a sample linker command file with .BINARY section.
- Add a binary file (.bin) as an input file for linker (MWLDARM.exe) mwldarm main.o c:\bin_data.bin -o myapp.elf commandfile.lcf.