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.

8.5.1 See also<br />

}<br />

SRAM 0x8000 0x8000<br />

{<br />

program2.o (+RW, +ZI) ; Place all RW and ZI data from<br />

; program2.o into this exec region<br />

}<br />

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

Caution<br />

The scatter-loading description in this example specifies <strong>the</strong> location for code and data for<br />

program1.o and program2.o only. If you link an additional module, for example, program3.o, and<br />

use this description file, <strong>the</strong> location of <strong>the</strong> code and data for program3.o is not specified.<br />

Unless you want to be very rigorous in <strong>the</strong> placement of code and data, it is advisable to use <strong>the</strong><br />

* or .ANY specifier to place leftover code and data.<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 />

• About scatter-loading on page 8-3<br />

• When to use scatter-loading on page 8-4<br />

• Scatter file to ELF mapping on page 8-67.<br />

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

• Scatter files containing relative base address load regions and a ZI execution region on<br />

page 4-36.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!