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.

GNU ld script support in armlink<br />

9.3 Important ld script commands that are implemented in armlink<br />

9.3.1 See also<br />

The following ld script commands are implemented:<br />

Commands that deal with files<br />

The following commands are implemented:<br />

• AS_NEEDED<br />

• ENTRY<br />

• GROUP<br />

• INCLUDE<br />

• INPUT<br />

• OUTPUT<br />

• OUTPUT_ARCH<br />

• OUTPUT_FORMAT<br />

• SEARCH_DIR<br />

• STARTUP<br />

Commands mapping input sections to output sections<br />

The SECTIONS command is implemented.<br />

The SECTIONS command is <strong>the</strong> most complex command and not all features are<br />

implemented. In particular, <strong>the</strong> load address features are not implemented:<br />

AT(address)<br />

>region<br />

AT>region<br />

These commands are not supported because <strong>the</strong>y ei<strong>the</strong>r require <strong>the</strong> unsupported<br />

PHDRS command or cause <strong>the</strong> Virtual Address and Load Address to be different.<br />

The following data definition functions are not implemented:<br />

• BYTE(expression)<br />

• COMMON<br />

• CONSTRUCTORS<br />

• CREATE_OBJECT_SYMBOLS<br />

• SHORT(expression)<br />

• LONG(expression)<br />

• QUAD(expression)<br />

• SQUAD(expression)<br />

The input section specifier is not available:<br />

archive:file<br />

Commands controlling symbol versioning<br />

The VERSIONS command is implemented.<br />

The VERSIONS command syntax is exactly <strong>the</strong> same as that supported by <strong>the</strong><br />

armlink --symver_script command-line option. armlink does not support <strong>the</strong><br />

matching of unmangled symbol names in VERSIONS commands.<br />

Concepts<br />

• About GNU ld script support and restrictions on page 9-2<br />

• Specific restrictions for using ld scripts with armlink on page 9-6.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!