06.02.2013 Views

ARM Compiler toolchain Using the Linker - ARM Information Center

ARM Compiler toolchain Using the Linker - ARM Information Center

ARM Compiler toolchain Using the Linker - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8.27 Example of placing code in a root region<br />

8.27.1 See also<br />

<strong>Using</strong> scatter files<br />

Use a scatter file to specify a root section in <strong>the</strong> same way as a named section. The following<br />

example uses <strong>the</strong> section selector InRoot$$Sections to place all sections that must be in a root<br />

region:<br />

Example 8-18 Specifying a root region<br />

ROM_LOAD 0x0000 0x4000<br />

{<br />

ROM_EXEC 0x0000 0x4000 ; root region at 0x0<br />

{<br />

vectors.o (Vect, +FIRST) ; Vector table<br />

* (InRoot$$Sections) ; All library sections that must be in a<br />

; root region, for example, __main.o,<br />

; __scatter*.o, __dc*.o, and * Region$$Table<br />

}<br />

RAM 0x10000 0x8000<br />

{<br />

* (+RO, +RW, +ZI) ; all o<strong>the</strong>r sections<br />

}<br />

}<br />

Tasks<br />

• Creating root execution regions on page 8-14<br />

• <strong>Using</strong> <strong>the</strong> FIXED attribute to create root regions on page 8-17.<br />

Concepts<br />

• What is a root region? on page 8-13<br />

• About placing <strong>ARM</strong> C and C++ library code on page 8-47<br />

• Example of placing <strong>ARM</strong> C library code on page 8-49<br />

• Example of placing <strong>ARM</strong> C++ library code on page 8-50.<br />

<strong>ARM</strong> DUI 0474C Copyright © 2010-2011 <strong>ARM</strong>. All rights reserved. 8-48<br />

ID080411 Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!