You copied the Doc URL to your clipboard.

--rwpi

This option makes the load and execution region containing the RW and ZI output section position-independent. If this option is not used the region is marked as absolute. This option requires a value for --rw_base. If --rw_base is not specified, --rw_base=0 is assumed. Usually each writable input section must be read-write position-independent (RWPI).

If this option is selected, the linker:

  • checks that the PI attribute is set on input sections to any read-write execution regions

  • checks that relocations between sections are valid

  • generates entries relative to the static base in the table Region$$Table.

    This is used when regions are copied, decompressed, or initialized.

Restrictions

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

Was this page helpful? Yes No