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.

9.4 Specific restrictions for using ld scripts with armlink<br />

9.4.1 See also<br />

The following restrictions apply when using ld scripts with armlink:<br />

GNU ld script support in armlink<br />

PHDRS This command is not implemented. When using an ld script <strong>the</strong> linker always<br />

generates program headers automatically.<br />

MEMORY This command is not implemented. The linker assumes that it has a uniform<br />

memory space from 0 to 0XFFFFFFFF.<br />

OVERLAY This command is not implemented. Overlays are not permitted.<br />

O<strong>the</strong>r commands and built-in functions<br />

The following commands and built-in functions are not supported:<br />

• ASSERT<br />

• FORCE_COMMON_ALLOCATION<br />

• INHIBIT_COMMON_ALLOCATION<br />

• INSERT AFTER<br />

• INSERT BEFORE<br />

• LENGTH<br />

• NOCROSSREFS<br />

• ORIGIN<br />

• REGION_ALIAS<br />

• TARGET<br />

armlink linker-defined symbols<br />

Each output section is defined internally as an execution region. The existing<br />

armlink execution region symbols can be used, for example:<br />

.text : { *(.text) }<br />

The output section .text is represented by an execution region called .text. You<br />

can use <strong>the</strong> symbol Image$$.text$$Base as if <strong>the</strong> execution region had been<br />

defined by a scatter file.<br />

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

O<strong>the</strong>r restrictions are:<br />

• __AT sections are not supported when using ld scripts<br />

• RW compression is not supported when using ld scripts.<br />

Concepts<br />

• About GNU ld script support and restrictions on page 9-2<br />

• Important ld script commands that are implemented in armlink on page 9-4<br />

• Image$$ execution region symbols on page 7-6.<br />

Reference<br />

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

• --linker_script=ld_script on page 2-100<br />

• --symver_script=file on page 2-167.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!