Hi,
I am using ARM DS-5 version 5.29.1 to develop a baremetal project for Cortex-A72,and write linker scripts with arm scatter fileI want to link a pure binary file with my program,but I don't know how to do.Who can help me?
Thanks
HiDo you want to include a plain binary as input for your build, or generate a plain binary as output from your build?To include a plain binary as input for your build, you can use the assembler.armasm provides the "INCBIN" directive. The armclang integrated assembler provides ".incbin" and ".include" directives.See https://developer.arm.com/documentation/100068/0610/migrating-from-armasm-to-the-armclang-integrated-assembler/miscellaneous-directivesTo generate a plain binary output, the output from the link step with armlink is an ELF file, so you must convert the ELF file using the "fromelf" utility, with e.g.:fromelf input.elf --bin -o output.binSee developer.arm.com/.../about-the-fromelf-image-converterStephen
HI
Thanks for your propose of armasm "INCBIN" directive,but I can not find armclang integrated assembler ".incbin" and ".include" directives in
Arm ® Compiler Version 6.13 Reference Guide.I will use armasm later,thank you again.
The usage is documented in the GNU binutils documentation:sourceware.org/.../Incbin.html