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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

• The ER_ZI execution region is placed immediately following <strong>the</strong> end of <strong>the</strong> preceding<br />

execution region, ER_RW.<br />

8.40.1 Relocatable load regions example variant<br />

8.40.2 See also<br />

This type 3 image also consists of two load regions in load view and three execution regions in<br />

execution view. However, --reloc is used to specify that <strong>the</strong> two load regions now have <strong>the</strong><br />

RELOC attribute.<br />

The following example shows <strong>the</strong> scatter-loading description equivalent to using --ro_base<br />

0x010000 --rw_base 0x040000 --reloc --split:<br />

LR_1 0x010000 RELOC<br />

{<br />

ER_RO + 0<br />

{<br />

* (+RO)<br />

}<br />

}<br />

LR2 0x040000 RELOC<br />

{<br />

ER_RW + 0<br />

{<br />

* (+RW)<br />

}<br />

}<br />

ER_ZI +0<br />

{<br />

* (+ZI)<br />

}<br />

Example 8-27 Relocatable load regions<br />

Concepts<br />

<strong>Linker</strong> Reference:<br />

• About load region descriptions on page 4-5<br />

• Considerations when using a relative address +offset for load regions on page 4-16<br />

• Considerations when using a relative address +offset for execution regions on page 4-17.<br />

Reference<br />

<strong>Linker</strong> Reference:<br />

• --reloc on page 2-132<br />

• --ro_base=address on page 2-135<br />

• --rw_base=address on page 2-139<br />

• --split on page 2-154<br />

• Load region attributes on page 4-7<br />

• Address attributes for load and execution regions on page 4-14.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!