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.

Contents<br />

<strong>ARM</strong> <strong>Compiler</strong> <strong>toolchain</strong> <strong>Using</strong> <strong>the</strong> <strong>Linker</strong><br />

Chapter 1 Conventions and feedback<br />

Chapter 2 Overview of <strong>the</strong> linker<br />

2.1 About <strong>the</strong> linker ............................................................................................................. 2-2<br />

2.2 <strong>Linker</strong> command-line syntax ......................................................................................... 2-4<br />

2.3 <strong>Linker</strong> command-line options listed in groups ............................................................... 2-5<br />

2.4 What <strong>the</strong> linker can accept as input ............................................................................ 2-10<br />

2.5 What <strong>the</strong> linker outputs ............................................................................................... 2-11<br />

2.6 What <strong>the</strong> linker does when constructing an executable image ................................... 2-12<br />

Chapter 3 Linking models supported by armlink<br />

3.1 Overview of linking models ........................................................................................... 3-2<br />

3.2 Bare-metal linking model .............................................................................................. 3-3<br />

3.3 Partial linking model ...................................................................................................... 3-4<br />

3.4 Base Platform Application Binary Interface (BPABI) linking model .............................. 3-5<br />

3.5 Base Platform linking model ......................................................................................... 3-6<br />

3.6 SysV linking model ....................................................................................................... 3-8<br />

3.7 Concepts common to both BPABI and SysV linking models ........................................ 3-9<br />

Chapter 4 Image structure and generation<br />

4.1 The image structure ...................................................................................................... 4-3<br />

4.2 Input sections, output sections, regions, and Program Segments ................................ 4-5<br />

4.3 Load view and execution view of an image .................................................................. 4-6<br />

4.4 Methods of specifying an image memory map with <strong>the</strong> linker ...................................... 4-8<br />

4.5 Types of simple image ................................................................................................ 4-10<br />

4.6 Type 1 image, one load region and contiguous execution regions ............................. 4-11<br />

4.7 Type 2 image, one load region and non-contiguous execution regions ..................... 4-13<br />

4.8 Type 3 image, two load regions and non-contiguous execution regions .................... 4-15<br />

4.9 Image entry points ...................................................................................................... 4-17<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!