You copied the Doc URL to your clipboard.

11.108 --ropi [BETA]

Makes the load and execution region containing the RO output section position-independent.

Note

  • Although --ropi is fully supported in armlink, it is a [BETA] feature in the context of the ARM® Compiler 6 ROPI feature.
  • Not supported for AArch64 state.

Usage

If this option is not used, the region is marked as absolute. Usually each read-only input section must be Read-Only Position-Independent (ROPI). If this option is selected, the linker:

  • Checks that relocations between sections are valid.
  • Ensures that any code generated by the linker itself, such as interworking veneers, is ROPI.

Note

The linker gives a downgradable error if --ropi is used without --rwpi or --rw_base.

Restrictions

You cannot use --ropi:

  • With --fpic, --scatter, or --xo_base.
  • When an object file contains execute-only sections.
Was this page helpful? Yes No