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.1 About scatter-loading<br />

8.1.1 See also<br />

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

The scatter-loading mechanism enables you to specify <strong>the</strong> memory map of an image to <strong>the</strong> linker<br />

using a description in a text file. Scatter-loading gives you complete control over <strong>the</strong> grouping<br />

and placement of image components. You can use scatter-loading to create simple images, but<br />

it is generally only used for images that have a complex memory map. That is, where multiple<br />

memory regions are scattered in <strong>the</strong> memory map at load and execution time.<br />

An image memory map is made up of regions and output sections. Every region in <strong>the</strong> memory<br />

map can have a different load and execution address.<br />

To construct <strong>the</strong> memory map of an image, <strong>the</strong> linker must have:<br />

• grouping information that describes how input sections are grouped into output sections<br />

and regions<br />

• placement information that describes <strong>the</strong> addresses where regions are to be located in <strong>the</strong><br />

memory maps.<br />

When <strong>the</strong> linker creates an image using a scatter file, it creates some region-related symbols.<br />

The linker creates <strong>the</strong>se special symbols only if your code references <strong>the</strong>m.<br />

Concepts<br />

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

• Region-related symbols on page 7-5<br />

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

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

Developing Software for <strong>ARM</strong> ® Processors:<br />

• Scatter-loading file with link to bit-band objects on page 3-16.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!