| |||
| Home > Formal syntax of the scatter file > Considerations when using a relative address +offset for load regions | |||
Be aware of the following when using + to
specify a load region base address:offset
If
the + load region
LR2 follows a load region LR1 containing ZI data, then LR2 overlaps
the ZI data. To fix this, use the offsetImageLimit() function
to specify the base address of LR2.
A + load
region LR2 inherits the attributes of the load region LR1 immediately before
it, unless:offset
LR1
has the OVERLAY attribute
LR2 has an explicit attribute set.
If a load region is unable to inherit an attribute, then it
gets the attribute ABSOLUTE.