You copied the Doc URL to your clipboard.


This option makes the load and execution region containing the RO output section position-independent. 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.


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


You cannot use --ropi with --scatter, --shared, or --sysv.