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

Image structure and generation<br />

Specify <strong>the</strong> load and execution address using <strong>the</strong> following linker options:<br />

--split Splits <strong>the</strong> default single load region, that contains both <strong>the</strong> RO and RW output<br />

sections, into two root load regions:<br />

• one containing <strong>the</strong> RO output section<br />

• one containing <strong>the</strong> RW output section.<br />

You can <strong>the</strong>n place <strong>the</strong>m separately using --ro_base and --rw_base.<br />

--ro_base address<br />

--rw_base address<br />

Instructs armlink to set <strong>the</strong> load and execution address of <strong>the</strong> region containing<br />

<strong>the</strong> RO section at a four-byte aligned address, for example, <strong>the</strong> address of <strong>the</strong> first<br />

location in ROM. If you do not use <strong>the</strong> --ro_base option to specify <strong>the</strong> address,<br />

<strong>the</strong> default value of 0x8000 is used by armlink.<br />

Instructs armlink to set <strong>the</strong> execution address of <strong>the</strong> region containing <strong>the</strong> RW<br />

output section at a four-byte aligned address. If this option is used with --split,<br />

this specifies both <strong>the</strong> load and execution addresses of <strong>the</strong> RW region, for<br />

example, a root region.<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 2 image, one load region and non-contiguous execution regions on page 4-13.<br />

Reference<br />

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

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

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

• --split on page 2-154.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!