3.1 --base [[object_file::]load_region_ID=]num
Enables you to alter the base address specified for one or more load regions in Motorola S-record and Intel Hex file formats.
Note
Not supported for AArch64 state inputs.Syntax
--base
[[object_file
::]load_region_ID
=]num
Where:
object_file
An optional ELF input file.
load_region_ID
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.num
Either a decimal or hexadecimal value.
You can:
-
Use wildcard characters
?
and*
for symbolic names in
andobject_file
arguments.load_region_ID
-
Specify multiple values in one
followed by a comma-separated list of arguments.option
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.
Restrictions
You must use one of the output formats --i32
,
--i32combined
, --m32
, or --m32combined
with this option. Therefore, you cannot use this option with object files.
Examples
The following table shows examples:
Table 3-1 Examples of 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 |