9.97 --ropi

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 or --xo_base.
  • If an object file contains execute-only sections.
Related reference
9.96 --ro_base=address
9.98 --rosplit
9.99 --rw_base=address
9.142 --zi_base=address
9.102 --scatter=filename
Non-ConfidentialPDF file icon PDF versionARM DUI0377G
Copyright © 2007, 2008, 2011, 2012, 2014, 2015 ARM. All rights reserved.