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.

4.11.2 Example<br />

4.11.3 See also<br />

The following scatter file shows how <strong>the</strong> linker places sections:<br />

LoadRegion 0x8000<br />

{<br />

ExecRegion1 0x0000 0x4000<br />

{<br />

*(sections)<br />

*(moresections)<br />

}<br />

ExecRegion2 0x4000 0x2000<br />

{<br />

*(evenmoresections)<br />

}<br />

}<br />

Image structure and generation<br />

The order of execution regions within <strong>the</strong> load region is not altered by <strong>the</strong> linker.<br />

Tasks<br />

• Placing sections with FIRST and LAST attributes on page 4-21<br />

• Placing functions and data at specific addresses on page 8-18<br />

• Placing a named section explicitly using scatter-loading on page 8-23<br />

• Placing unassigned sections with <strong>the</strong> .ANY module selector on page 8-25.<br />

Concepts<br />

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

• Input sections, output sections, regions, and Program Segments on page 4-5<br />

• Load view and execution view of an image on page 4-6<br />

• About ordering execution regions containing Thumb code on page 4-25<br />

• Overview of veneers on page 4-26<br />

• Section alignment with <strong>the</strong> linker on page 4-22.<br />

Reference<br />

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

• --sort=algorithm on page 2-152<br />

• Syntax of an input section description on page 4-22.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!