3.3 --bincombined
Produces plain binary output. It generates one output file for an image containing multiple load regions.
Usage
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 this option with --bincombined_base
and
--bincombined_padding
to change the default values for the base address
and padding.
Restrictions
The following restrictions apply:
- You cannot use this option with object files.
- You must use
--output
with this option.
Considerations when using --bincombined
Use this option with --bincombined_base
to change the default value for
the base address.
The default padding value is
. Use
this option with 0xFF
--bincombined_padding
to change the default padding
value.
If you use a scatter file that defines two load regions with a large address space between
them, the resulting binary can be very large because it contains mostly padding. For
example, if you have a load region of size
bytes at address 0x100
and another load region at address 0x00000000
, the amount of padding is 0x30000000
bytes.0x2FFFFF00
ARM recommends that you use a different method of placing widely spaced load regions, such
as --bin
, and make your own arrangements to load the multiple output files
at the correct addresses.
Examples
To produce a binary file that can be loaded at start address
, enter:0x1000
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
, enter:0x12345678
fromelf --bincombined --bincombined_padding=4,0x12345678 --output=out.bin in.axf