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.

BL init_foo<br />

;Rest of code<br />

END<br />

4.22.2 Example of a weak definition<br />

4.22.3 See also<br />

Image structure and generation<br />

A simple or dummy implementation of a function can be provided as a weak definition. This<br />

enables you to built software with defined behavior without having to provide a full<br />

implementation of <strong>the</strong> function. It also enables you to provide a full implementation for some<br />

builds if required.<br />

Concepts<br />

• How <strong>the</strong> linker performs library searching, selection, and scanning on page 4-35<br />

• How <strong>the</strong> linker resolves references on page 4-39.<br />

Reference<br />

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

• --feedback=file on page 2-66<br />

• --keep=section_id on page 2-89<br />

• --remove, --no_remove on page 2-134.<br />

<strong>Compiler</strong> Reference:<br />

• --split_sections on page 3-190<br />

• __weak on page 5-23<br />

• __attribute__((weak)) function attribute on page 5-57<br />

• __attribute__((weakref("target"))) function attribute on page 5-58<br />

• __attribute__((weak)) variable attribute on page 5-77<br />

• __attribute__((weakref("target"))) variable attribute on page 5-78<br />

• #pragma arm section [section_type_list] on page 5-83.<br />

Assembler Reference:<br />

• NOP on page 3-143<br />

• B, BL, BX, BLX, and BXJ on page 3-116<br />

• ENTRY on page 6-65<br />

• EXPORT or GLOBAL on page 6-67.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!