| |||||||||||||
Technical Support On-Line Manuals RealView Linker and Utilities Guide | Section placement
The linker sorts all the input sections within a region according to their attributes. Input sections with identical attributes form a contiguous block within the region. The base address of each input section is determined by the sorting order defined by the linker, and is correctly aligned within the output section that contains it. In general, the linker sorts the input sections in the following order when generating an image:
NoteThis sorting order is unaffected by ordering within scatter‑files or object file names. If an execution region contains 4MB of Thumb code, 16MB of Thumb-2 code or more than 32MB of ARM code, the linker might change the sort order to reduce the number of long branch veneers to a minimum. SeeVeneer generation for more information. By default, the linker creates an image consisting of an RO, an RW, and optionally a ZI output section. The RO output section can be protected at runtime on systems that have memory management hardware. RO sections can also be placed into ROM in the target. | ||||||||||||
| |||||||||||||