3.3.3. Position-independent data addressing

An RWPI segment can be repositioned until it is first used. The address of a symbol in an RWPI segment is calculated as follows:

  1. The linker calculates a read-only offset from a fixed location in the segment. By convention, the fixed location is the first byte of the lowest addressed RWPI segment of the program.

  2. At runtime, this is used as an offset added to the contents of the static base register, sb.

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