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.15 Creating a symdefs file<br />

7.15.1 See also<br />

Accessing and managing symbols with armlink<br />

Use <strong>the</strong> armlink option --symdefs=filename to generate a symdefs file.<br />

The linker produces a symdefs file during a successful final link stage. It is not produced for<br />

partial linking or for unsuccessful final linking.<br />

Note<br />

If filename does not exist, <strong>the</strong> file is created containing all <strong>the</strong> global symbols. If filename exists,<br />

<strong>the</strong> existing contents of filename are used to select <strong>the</strong> symbols that are output when <strong>the</strong> linker<br />

rewrites <strong>the</strong> file. This means that only <strong>the</strong> existing symbols in <strong>the</strong> filename are updated, and no<br />

new symbols (if any) are added at all. If you do not want this behavior, ensure that any existing<br />

symdefs file is deleted before <strong>the</strong> link step.<br />

Concepts<br />

• Accessing symbols in ano<strong>the</strong>r image on page 7-17.<br />

Reference<br />

• Symdefs file format on page 7-21.<br />

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

• --symdefs=file on page 2-166.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!