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.

8.26 About placing <strong>ARM</strong> C and C++ library code<br />

8.26.1 See also<br />

<strong>Using</strong> scatter files<br />

You can place code from <strong>the</strong> <strong>ARM</strong> standard C and C++ libraries in a scatter file. Use *armlib or<br />

*cpplib* so that <strong>the</strong> linker can resolve library naming in your scatter file.<br />

Some <strong>ARM</strong> C and C++ library sections must be placed in a root region, for example __main.o,<br />

__scatter*.o, __dc*.o and *Region$$Table. This list can change between releases. The linker can<br />

place all <strong>the</strong>se sections automatically in a future-proof way with InRoot$$Sections.<br />

Tasks<br />

• Creating root execution regions on page 8-14<br />

• <strong>Using</strong> <strong>the</strong> FIXED attribute to create root regions on page 8-17.<br />

Concepts<br />

• What is a root region? on page 8-13<br />

• Example of placing code in a root region on page 8-48<br />

• Example of placing <strong>ARM</strong> C library code on page 8-49<br />

• Example of placing <strong>ARM</strong> C++ library code on page 8-50.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!