Converting an ELF image to plain binary format

Use the --bin option to produce plain binary output, one file for each load region. You can split the output from this option into multiple files with the --widthxbanks option.

Use the --bincombined option to produce plain binary output. It generates one output file for an image containing multiple load regions. By default, the start address of the first load region in memory is used as the base address. fromelf inserts padding between load regions as required to ensure that they are at the correct relative offset from each other. Separating the load regions in this way means that the output file can be loaded into memory and correctly aligned starting at the base address.

Use the --bincombined option with --bincombined_base and --bincombined_padding to change the default values for the base address and padding.

Be aware of the following when using these options:

Show/hideExamples

To convert an ELF file to a plain binary file, for example outfile.bin, enter:

fromelf --bin --output=out.bin in.axf

To produce a binary file that can be loaded at start address 0x1000, enter:

fromelf --bincombined --bincombined_base=0x1000 --output=out.bin in.axf

To produce plain binary output and fill the space between load regions with copies of the 32-bit word 0x12345678, enter:

fromelf --bincombined --bincombined_padding=4,0x12345678 --output=out.bin in.axf

Show/hideSee also

Copyright © 2010-2011 ARM. All rights reserved.ARM DUI 0477E
Non-ConfidentialID071611