--rwpi
In this section:
Syntax
--rwpi
Description
Use this option to enable position-independent writable data. A base register will be locked to hold the base address of the position-independent block. The default memory attribute for non-constant objects will be __sbrel (position-independent).
When this option is used, these limitations apply:
Constant pointers to
__sbrelobjects cannot be used__sbrelobjects cannot be declaredconst.
See also
Caution
Project>Options>General Options>Target>Read/write data