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.

7.22 Steering file format<br />

7.22.1 See also<br />

A steering file is a plain text file of <strong>the</strong> following format:<br />

Accessing and managing symbols with armlink<br />

• Lines with a semicolon (;) or hash (#) character as <strong>the</strong> first non-whitespace character are<br />

interpreted as comments. A comment is treated as a blank line.<br />

• Blank lines are ignored.<br />

• Each non-blank, non-comment line is ei<strong>the</strong>r a command, or part of a command that is split<br />

over consecutive non-blank lines.<br />

• Command lines that end with a comma (,) as <strong>the</strong> last non-whitespace character is<br />

continued on <strong>the</strong> next non-blank line.<br />

Each command line consists of a command, followed by one or more comma-separated operand<br />

groups. Each operand group comprises ei<strong>the</strong>r one or two operands, depending on <strong>the</strong> command.<br />

The command is applied to each operand group in <strong>the</strong> command. The following rules apply:<br />

• Commands are case-insensitive, but are conventionally shown in uppercase.<br />

• Operands are case-sensitive because <strong>the</strong>y must be matched against case-sensitive symbol<br />

names. You can use wildcard characters in operands.<br />

Commands are applied to global symbols only. O<strong>the</strong>r symbols, such as local symbols, are not<br />

affected.<br />

The following example shows a sample steering file:<br />

; Import my_func1 as func1<br />

IMPORT my_func1 AS func1<br />

# Rename a very long function name to a shorter name<br />

RENAME a_very_long_function_name AS,<br />

short_func_name<br />

Tasks<br />

• Specifying steering files on <strong>the</strong> linker command-line on page 7-24.<br />

Concepts<br />

• What is a steering file? on page 7-23.<br />

Reference<br />

• Steering file command summary on page 7-25.<br />

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

• EXPORT on page 3-2<br />

• HIDE on page 3-3<br />

• IMPORT on page 3-4<br />

• RENAME on page 3-5<br />

• REQUIRE on page 3-7<br />

• RESOLVE on page 3-8<br />

• SHOW on page 3-10.<br />

Example 7-4 Example steering file<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!