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.

4.10 About specifying an initial entry point<br />

4.10.1 See also<br />

Image structure and generation<br />

You must specify at least one initial entry point for a program o<strong>the</strong>rwise <strong>the</strong> linker produces a<br />

warning. Not every source file has to have an entry point. Multiple entry points in a single source<br />

file are not permitted.<br />

For embedded applications with ROM at zero use --entry 0x0, or optionally 0xFFFF0000 for<br />

CPUs that are using high vectors.<br />

The initial entry point must meet <strong>the</strong> following conditions:<br />

• <strong>the</strong> image entry point must always lie within an execution region<br />

• <strong>the</strong> execution region must not overlay ano<strong>the</strong>r execution region, and must be a root<br />

execution region (<strong>the</strong> load address is <strong>the</strong> same as <strong>the</strong> execution address).<br />

If you do not use <strong>the</strong> --entry option to specify <strong>the</strong> initial entry point <strong>the</strong>n:<br />

• if <strong>the</strong> input objects contain only one entry point set by <strong>the</strong> ENTRY directive, <strong>the</strong> linker uses<br />

that entry point as <strong>the</strong> initial entry point for <strong>the</strong> image<br />

• <strong>the</strong> linker generates an image that does not contain an initial entry point when ei<strong>the</strong>r:<br />

— more than one entry point has been specified by using <strong>the</strong> ENTRY directive<br />

— no entry point has been specified by using <strong>the</strong> ENTRY directive.<br />

Concepts<br />

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

Reference<br />

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

• --entry=location on page 2-58.<br />

Assembler Reference:<br />

• ENTRY on page 6-65.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!