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.

10.17 <strong>Linker</strong> options for bare metal and DLL-like models<br />

10.17.1 See also<br />

BPABI and SysV shared libraries and executables<br />

Use <strong>the</strong> following command-line options to build bare metal executables and dynamically linked<br />

library (DLL) like models for a platform OS:<br />

Command-line options Description<br />

If you are developing applications or DLL for a specific platform OS, based around <strong>the</strong> Base<br />

Platform Application Binary Interface (BPABI), you must use <strong>the</strong> following information in<br />

conjunction with <strong>the</strong> platform documentation:<br />

• bare metal and DLL-like memory model<br />

• mandatory symbol versioning in <strong>the</strong> BPABI DLL-like model<br />

• automatic dynamic symbol table rules in <strong>the</strong> BPABI DLL-like model<br />

• addressing modes in <strong>the</strong> BPABI DLL-like model<br />

• C++ initialization in <strong>the</strong> BPABI DLL-like model.<br />

If you are implementing a platform OS, you must use this information in conjunction with <strong>the</strong><br />

BPABI specification.<br />

Concepts<br />

• Bare metal and DLL-like memory model on page 10-22<br />

• Mandatory symbol versioning in <strong>the</strong> BPABI DLL-like model on page 10-23<br />

• Automatic dynamic symbol table rules in <strong>the</strong> BPABI DLL-like model on page 10-24<br />

• Addressing modes in <strong>the</strong> BPABI DLL-like model on page 10-25<br />

• C++ initialization in <strong>the</strong> BPABI DLL-like model on page 10-26<br />

• Related linker command-line options for <strong>the</strong> BPABI DLL-like model on page 10-32.<br />

Reference<br />

• --base_platform on page 2-18<br />

• --bpabi on page 2-24<br />

• --dll on page 2-49.<br />

Table 10-3 Turning on BPABI support<br />

--base_platform to use scatter-loading with Base Platform ABI (BPABI)<br />

--bpabi to produce a BPABI executable<br />

--bpabi --dll to produce a BPABI DLL<br />

O<strong>the</strong>r information<br />

• Base Platform ABI for <strong>the</strong> <strong>ARM</strong> Architecture,<br />

http://infocenter.arm.com/help/topic/com.arm.doc.ihi0037-/index.html<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!