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.

6.1 <strong>Linker</strong> options for getting information about images<br />

6.1.1 See also<br />

Getting information about images<br />

You can use following options to get information about how your image is generated by <strong>the</strong><br />

linker:<br />

--info=topic[,topic,...]<br />

Displays information about various topics.<br />

--map Displays <strong>the</strong> image memory map, and contains <strong>the</strong> address and <strong>the</strong> size of each<br />

load region, execution region, and input section in <strong>the</strong> image, including<br />

linker-generated input sections. It also shows how RW data compression is<br />

applied.<br />

--section_index_display<br />

Use with --map to change <strong>the</strong> display of <strong>the</strong> index column.<br />

--show_cmdline<br />

Outputs <strong>the</strong> command-line used by <strong>the</strong> linker.<br />

--symbols Displays a list of each local and global symbol used in <strong>the</strong> link step, and its value.<br />

--verbose Displays detailed information about <strong>the</strong> link operation, including <strong>the</strong> objects that<br />

are included and <strong>the</strong> libraries that contain <strong>the</strong>m.<br />

--xref Displays a list of all cross-references between input sections.<br />

--xrefdbg Displays a list of all cross-references between input debug sections.<br />

The information can be written to a file using <strong>the</strong> --list=file option.<br />

Concepts<br />

• Section alignment with <strong>the</strong> linker on page 4-22<br />

• Optimization with RW data compression on page 5-13.<br />

• Identifying <strong>the</strong> source of some link errors on page 6-3<br />

• Example of using <strong>the</strong> --info linker option on page 6-4<br />

Reference<br />

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

• --info=topic[,topic,...] on page 2-80<br />

• --list=file on page 2-102<br />

• --map, --no_map on page 2-108<br />

• --section_index_display=type on page 2-145<br />

• --show_cmdline on page 2-147<br />

• --symbols, --no_symbols on page 2-165<br />

• --verbose on page 2-184<br />

• --xref, --no_xref on page 2-190<br />

• --xrefdbg, --no_xrefdbg on page 2-191.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!