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.

11.2.1 See also<br />

LR3 0x20000 RELOC<br />

{<br />

ER_RELOCATABLE +0<br />

{<br />

*(floatingsection)<br />

}<br />

}<br />

Features of <strong>the</strong> Base Platform linking model<br />

The linker does not have to generate dynamic relocations between LR1 and LR2 because <strong>the</strong>y<br />

have fixed addresses. However, <strong>the</strong> RELOC load region LR3 might be widely separated from load<br />

regions LR1 and LR2 in <strong>the</strong> address space. Therefore, dynamic relocations are required between<br />

LR1 and LR3, and LR2 and LR3.<br />

Use <strong>the</strong> options --pltgot=direct --pltgot_opts=crosslr to ensure a PLT is generated for each<br />

load region.<br />

Concepts<br />

• Base Platform Application Binary Interface (BPABI) linking model on page 3-5<br />

• Base Platform linking model on page 3-6<br />

• Concepts common to both BPABI and SysV linking models on page 3-9<br />

• Restrictions on <strong>the</strong> use of scatter files with <strong>the</strong> Base Platform model on page 11-2<br />

Reference<br />

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

• Load region attributes on page 4-7.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!