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.

8.13.6 See also<br />

The following example shows how to use ANY_SIZE:<br />

LOAD_REGION 0x0 0x3000<br />

{<br />

ER_1 0x0 ANY_SIZE 0xF00 0x1000<br />

{<br />

.ANY<br />

}<br />

ER_2 0x0 ANY_SIZE 0xFB0 0x1000<br />

{<br />

.ANY<br />

}<br />

ER_3 0x0 ANY_SIZE 0x1000 0x1000<br />

{<br />

.ANY<br />

}<br />

}<br />

In this example:<br />

• ER_1 has 0x100 reserved for linker-generated content.<br />

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

• ER_2 has 0x50 reserved for linker-generated content. That is about <strong>the</strong> same as <strong>the</strong><br />

automatic contingency of --any_contingency.<br />

• ER_3 has no reserved space. Therefore 100% of <strong>the</strong> region is filled, with no contingency<br />

for veneers. Omitting <strong>the</strong> ANY_SIZE parameter causes 98% of <strong>the</strong> region to be filled, with<br />

a two percent contingency for veneers.<br />

Concepts<br />

• Examples of using placement algorithms for .ANY sections on page 8-28<br />

• Example of next_fit algorithm showing behavior of full regions, selectors, and priority on<br />

page 8-30<br />

• Examples of using sorting algorithms for .ANY sections on page 8-32.<br />

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

• How <strong>the</strong> linker resolves multiple matches when processing scatter files on page 4-26<br />

• Behavior when .ANY sections overflow because of linker-generated content on page 4-28.<br />

Reference<br />

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

• --any_contingency on page 2-8<br />

• --any_placement=algorithm on page 2-9<br />

• --any_sort_order=order on page 2-11<br />

• --info=topic[,topic,...] on page 2-80<br />

• --map, --no_map on page 2-108<br />

• --section_index_display=type on page 2-145<br />

• --tiebreaker=option on page 2-173<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. 8-27<br />

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!