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.7.3 See also<br />

Image structure and generation<br />

Use armlink options --ro_base address to specify <strong>the</strong> load and execution address for <strong>the</strong> RO<br />

output section, and --rw_base exec_address to specify <strong>the</strong> execution address of <strong>the</strong> RW output<br />

section. If you do not use <strong>the</strong> --ro_base option to specify <strong>the</strong> address, <strong>the</strong> default value of 0x8000<br />

is used by armlink. For an embedded system, 0x0 is typical for <strong>the</strong> --ro_base value. If you do not<br />

use <strong>the</strong> --rw_base option to specify <strong>the</strong> address, <strong>the</strong> default is to place RW directly above RO (as<br />

in a Type 1 image).<br />

Use <strong>the</strong> --zi_base command-line option to specify <strong>the</strong> base address of a ZI execution region.<br />

Note<br />

The execution region for <strong>the</strong> RW and ZI output sections cannot overlap any of <strong>the</strong> load regions.<br />

Concepts<br />

• The image structure on page 4-3<br />

• Input sections, output sections, regions, and Program Segments on page 4-5<br />

• Load view and execution view of an image on page 4-6<br />

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

Reference<br />

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

• --ro_base=address on page 2-135<br />

• --rw_base=address on page 2-139<br />

• --zi_base=address on page 2-193.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!