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.16.2 Command-line example<br />

8.16.3 See also<br />

The following linker command-line options are used for this example:<br />

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

--any_sort_order=cmdline sections_a.o sections_b.o --scatter scatter.txt<br />

The order that <strong>the</strong> sections are processed by <strong>the</strong> .ANY assignment algorithm is:<br />

Sections with <strong>the</strong> same command-line index use <strong>the</strong> tiebreak specified by --tiebreaker.<br />

Concepts<br />

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

Reference<br />

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

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

• --scatter=file on page 2-142<br />

• --tiebreaker=option on page 2-173.<br />

Table 8-6 Sort order for cmdline algorithm<br />

Name Size<br />

seca_1 0x4<br />

secb_1 0x4<br />

seca_2 0x4<br />

secb_2 0x4<br />

seca_3 0x10<br />

secb_3 0x10<br />

seca_4 0x14<br />

secb_4 0x14<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!