3.3. Read-write position independence

A program is Read-Write Position-Independent (RWPI) if all its read-write segments are position independent.

An RWPI segment is usually Position-Independent Data (PID).

RWPI is an AAPCS variant. Use the compiler or assembler option --apcs /rwpi to avoid committing yourself to a particular location of data in memory. This is particularly useful for data that must be multiply instantiated for reentrant routines.

For more information, see the Procedure Call Standard for the ARM Architecture specification, aapcs.pdf, in install_directory\Documentation\Specifications\...

This section includes:

Copyright © 2002-2006 ARM Limited. All rights reserved.ARM DUI 0203G
Non-Confidential