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.

7.23 Hiding and renaming global symbols with a steering file<br />

7.23.1 See also<br />

Accessing and managing symbols with armlink<br />

You can use a steering file to hide and rename global symbol names in output files. You use <strong>the</strong><br />

HIDE and RENAME commands accordingly.<br />

For example, you can use steering files to protect intellectual property, or avoid namespace<br />

clashes.<br />

Example of renaming a symbol:<br />

RENAME func1 AS my_func1<br />

Example of hiding symbols:<br />

; Hides all global symbols with <strong>the</strong> ‘internal’ prefix<br />

HIDE internal*<br />

Example 7-5 RENAME steering command example<br />

Example 7-6 HIDE steering command example<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 />

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

Reference<br />

• Steering file format on page 7-26.<br />

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

• --edit=file_list on page 2-53<br />

• HIDE on page 3-3<br />

• RENAME on page 3-5.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!