Keil™, An ARM® Company

RealView Linker and Utilities Guide

Ordering input sections by attribute

3.2.1. Ordering input sections by attribute

Portions of the image are collected together into a minimum number of contiguous regions. armlink orders input sections by attribute as follows:

  1. read-only code

  2. read-only data

  3. read‑write code

  4. read‑write data

  5. zero‑initialized data.

Input sections that have the same attributes are ordered by name. Names are considered to be case‑sensitive and are compared in alphabetical order using the ASCII collation sequence for characters.

Identically attributed and named input sections are ordered according to their relative positions in the input list.

These rules mean that the positions of identically attributed and named input sections included from libraries are not predictable. If more precise positioning is required, you can extract modules manually and include them in the input list.

Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0377A