| |||
| Home > Accessing Image Symbols > Accessing linker-defined symbols > Region-related symbols | |||
Region-related symbols are generated when armlink creates an image. Table 4.1 shows the symbols that armlink generates for every execution region present in the image.
The linker uses values
of:region_name
ER_RO,
for read-only regions
ER_RW, for read-write regions
ER_ZI, for zero-initialized regions.
For every execution region containing a ZI output section,
armlink generates additional symbols containing $$ZI$$.
Table 4.1. Region-related linker symbols
| Symbol | Description |
|---|---|
Load$$ | Load address of the region. |
Image$$ | Execution address of the region. |
Image$$ | Execution region length in bytes (multiple of 4). |
Image$$ | Address of the byte beyond the end of the execution region. |
Image$$ | Execution address of the ZI output section in this region. |
Image$$ | Length of the ZI output section in bytes (multiple of 4). |
Image$$ | Address of the byte beyond the end of the ZI output section in the execution region. |
The ZI output sections of an image are not created statically, but are automatically created dynamically at run-time. Therefore there is no load address symbol for ZI output sections.
It is recommended that you use region-related symbols in preference to section-related symbols.