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.8 What is a root region?<br />

8.8.1 See also<br />

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

A root region is a region with <strong>the</strong> same load and execution address. The initial entry point of <strong>the</strong><br />

image must be in a root region. If <strong>the</strong> initial entry point is not in a root region, <strong>the</strong> link fails and<br />

<strong>the</strong> linker gives an error message.<br />

Example 8-3 Root region with <strong>the</strong> same load and execution address<br />

LR_1 0x040000 ; load region starts at 0x40000<br />

{ ; start of execution region descriptions<br />

ER_RO 0x040000 ; load address = execution address<br />

{<br />

* (+RO) ; all RO sections (must include section with<br />

; initial entry point)<br />

}<br />

... ; rest of scatter-loading description<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 />

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

Concepts<br />

• The image structure on page 4-3.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!