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.28 Example of placing <strong>ARM</strong> C library code<br />

8.28.1 See also<br />

The following example shows how to place C library code:<br />

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

Example 8-19 Placing <strong>ARM</strong> C library code<br />

ROM1 0<br />

{<br />

* (InRoot$$Sections)<br />

* (+RO)<br />

ROM2 0x1000<br />

{<br />

*armlib/c_* (+RO) ; all <strong>ARM</strong>-supplied C library functions<br />

}<br />

}<br />

ROM3 0x2000<br />

{<br />

*armlib/h_* (+RO) ; just <strong>the</strong> <strong>ARM</strong>-supplied __<strong>ARM</strong>_*<br />

; redistributable library functions<br />

}<br />

RAM1 0x3000<br />

{<br />

*armlib* (+RO) ; all o<strong>the</strong>r <strong>ARM</strong>-supplied library code<br />

; for example, floating-point libraries<br />

}<br />

RAM2 0x4000<br />

{<br />

* (+RW, +ZI)<br />

}<br />

The name armlib is used to indicate <strong>the</strong> <strong>ARM</strong> C library files that are located in <strong>the</strong> armlib<br />

directory. The location of armlib is defined by <strong>the</strong> <strong>ARM</strong>CC41LIB environment variable.<br />

Concepts<br />

• About placing <strong>ARM</strong> C and C++ library code on page 8-47<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-50.<br />

Reference<br />

<strong>Using</strong> <strong>ARM</strong> ® C and C++ Libraries and Floating Point Support:<br />

• C and C++ library naming conventions on page 2-120.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!