| |||
| Home > fromelf command reference > --base [[object_file::]load_region_ID=]num | |||
This option enables you to alter the base address specified for one or more load regions in Motorola S-record and Intel Hex file formats.
You must use one of the output formats --i32, --i32combined, --m32,
or --m32combined with this option.
--base [[object_file::]load_region_ID=]num
Where:
object_fileis an optional ELF input file.
load_region_IDis an optional load region. This can either be a
symbolic name of an execution region belonging to a load region
or a zero-based load region number, for example #0 if
referring to the first region.
numis either a decimal or hexadecimal value.
You can:
use wildcard characters ? and * for
symbolic names in and object_file argumentsload_region_ID
specify multiple options in one --base option
followed by a comma-separated list of arguments.
All addresses encoded in the output file start at the base
address . If you
do not specify a num--base option, the base address
is taken from the load region address.
Table 3. Examples using --base
| decimal value |
| hexadecimal value |
| base address for the first load region |
| base address for all load regions in foo.o |
| base address for the first and second load regions |