Keil Logo

--base [[object_file::]load_region_ID=]num

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.

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 object_file and load_region_ID arguments.
  • Specify multiple values in one option followed by a comma-separated list of arguments.
All addresses encoded in the output file start at the base address num. If you do not specify a --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

--base 0
decimal value
--base 0x8000
hexadecimal value
--base #0=0
base address for the first load region
--base foo.o::*=0
base address for all load regions in foo.o
--base #0=0,#1=0x8000
base address for the first and second load regions
Non-ConfidentialPDF file icon PDF versionARM DUI0459G
Copyright © 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.