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.

11.2 Example scatter file for <strong>the</strong> Base Platform linking model<br />

Features of <strong>the</strong> Base Platform linking model<br />

This example shows <strong>the</strong> use of a scatter file with <strong>the</strong> Base Platform linking model.<br />

The standard Base Platform Application Binary Interface (BPABI) memory model in scatter file<br />

format, with relocatable load regions is:<br />

LR1 0x8000 RELOC<br />

{<br />

ER_RO +0<br />

{<br />

*(+RO)<br />

}<br />

}<br />

LR2 0x0 RELOC<br />

{<br />

ER_RW +0<br />

{<br />

*(+RW)<br />

}<br />

ER_ZI +0<br />

{<br />

*(+ZI)<br />

}<br />

}<br />

Example 11-7 Standard BPABI scatter file with relocatable load regions<br />

This example conforms to <strong>the</strong> BPABI, because it has <strong>the</strong> same two-region format as <strong>the</strong> BPABI<br />

specification.<br />

The next example shows two load regions LR1 and LR2 that are not relocatable.<br />

LR1 0x8000<br />

{<br />

ER_RO +0<br />

{<br />

*(+RO)<br />

}<br />

ER_RW +0<br />

{<br />

*(+RW)<br />

}<br />

ER_ZI +0<br />

{<br />

*(+ZI)<br />

}<br />

}<br />

LR2 0x10000<br />

{<br />

ER_KNOWN_ADDRESS +0<br />

{<br />

*(fixedsection)<br />

}<br />

}<br />

Example 11-8 Scatter file with some load regions that are not relocatable<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!