RealView Compilation Tools Developer Guide - ARM Information ...
RealView Compilation Tools Developer Guide - ARM Information ...
RealView Compilation Tools Developer Guide - ARM Information ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Embedded Software Development<br />
}<br />
RAM 0x10000 0x8000<br />
{<br />
* (+RW, +ZI); All non-constant data<br />
}<br />
2.4.4 Placing objects in a scatter-loading description file<br />
For most images, you control the placement of specific code and data sections, rather<br />
than grouping all attributes together as in Example 2-2 on page 2-17. You can do this<br />
by specifying individual objects directly in the description file, instead of relying only<br />
on the wildcard syntax.<br />
Note<br />
The ordering of objects in a description file execution region does not affect how they<br />
are ordered in the output image. The linker placement rules described in Linker<br />
placement rules on page 2-9 apply to each execution region.<br />
To override the standard linker placement rules, you can use the +FIRST and +LAST<br />
scatter-loading directives. Example 2-3 shows a scatter-loading description file that<br />
places the vector table at the beginning of an execution region. In this example, the area<br />
Vect in vectors.o is placed at address 0x0000.<br />
Example 2-3 Placing a section<br />
ROM_LOAD 0x0000 0x4000<br />
{<br />
ROM_EXEC 0x0000 0x4000<br />
{<br />
vectors.o (Vect, +FIRST)<br />
* (+RO)<br />
}<br />
; more exec regions...<br />
}<br />
See Chapter 5 Using Scatter-loading Description Files in the Linker and Utilities <strong>Guide</strong><br />
for more information on placing objects in scatter-loading description files.<br />
2-18 Copyright © 2002-2007 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0203H<br />
Non-Confidential