‑‑ropi_cb
In this section:
Syntax
‑‑ropi_cb
Description
Use this option to make all accesses to constant data, base-addressed relative to the register R8. In 64-bit mode, this option has no effect.
Use ‑‑ropi_cb together with ‑‑ropi to activate a variant of ROPI that uses the Arm core register R8 as the base address for read-only data, instead of using the PC. This is useful, for example, when using ROPI in code that runs from execute-only memory, which is enabled if you compile and link with ‑‑no_literal_pool.
Note:
The use of
‑‑ropi_cbis not AEABI-compliant.There is no provided setup of the register
R8. This must be handled by your application.
Caution
To set this option, use Project>Options>C/C++ Compiler>Extra Options.