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.2 Accessing linker-defined symbols<br />

7.2.1 See also<br />

Accessing and managing symbols with armlink<br />

The linker defines some symbols that contain <strong>the</strong> character sequence $$. These symbols, and all<br />

o<strong>the</strong>r external names containing <strong>the</strong> sequence $$, are names reserved by <strong>ARM</strong>.<br />

You can import <strong>the</strong>se symbolic addresses and use <strong>the</strong>m as relocatable addresses by your<br />

assembly language programs, or refer to <strong>the</strong>m as extern symbols from your C or C++ source<br />

code.<br />

Be aware that:<br />

• If you use <strong>the</strong> --strict compiler command-line option, <strong>the</strong> compiler does not accept<br />

symbol names containing dollar symbols. To re-enable support, include <strong>the</strong> --dollar<br />

option on <strong>the</strong> compiler command line.<br />

• <strong>Linker</strong>-defined symbols are only generated when your code references <strong>the</strong>m.<br />

Concepts<br />

• Importing linker-defined symbols in C and C++ on page 7-12<br />

• Importing linker-defined symbols in <strong>ARM</strong> assembler on page 7-13.<br />

Reference<br />

<strong>Compiler</strong> Reference:<br />

• --dollar, --no_dollar on page 3-78<br />

• --strict, --no_strict on page 3-191.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!