3.5 --bincombined_padding=size,num
Enables you to specify a different padding value from the default used by the --bincombined
output mode.
Syntax
--bincombined_padding=size,num
Where:
size
Is 1, 2, or 4 bytes to define whether it is a byte, halfword, or word.
num
The value to be used for padding. If you specify a value that is too large to fit in the specified size, a warning message is displayed.
Note
fromelf
expects that 2-byte and 4-byte padding values are specified in
the appropriate endianness for the input file. For example, if you are translating a big
endian ELF file into binary, the specified padding value is treated as a big endian word
or halfword.
Default
The default is --bincombined_padding=1,0xFF
.
Restrictions
You must use --bincombined
with this option. If you omit
--bincombined
, a warning message is displayed.
Examples
The following examples show how to use --bincombined_padding
:
--bincombined --bincombined_padding=4,0x12345678
This example produces plain binary output and fills the space between load regions with copies of the 32-bit word 0x12345678.
--bincombined --bincombined_padding=2,0x1234
This example produces plain binary output and fills the space between load regions with copies of the 16-bit halfword 0x1234.
--bincombined --bincombined_padding=2,0x01
This example when specified for big endian memory, fills the space between load regions with
.0x0100