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.

5.1 Elimination of common debug sections<br />

5.1.1 See also<br />

<strong>Using</strong> linker optimizations<br />

In DWARF 2, <strong>the</strong> compiler and assembler generate one set of debug sections for each source<br />

file that contributes to a compilation unit. armlink can detect multiple copies of a debug section<br />

for a particular source file and discard all but one copy in <strong>the</strong> final image. This can result in a<br />

considerable reduction in image debug size.<br />

In DWARF 3, common debug sections are placed in common groups. armlink discards all but<br />

one copy of each group with <strong>the</strong> same signature.<br />

Concepts<br />

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

• Elimination of common groups or sections on page 5-3<br />

• Elimination of unused sections on page 5-4<br />

• Elimination of unused virtual functions on page 5-6.<br />

Reference<br />

<strong>Compiler</strong> Reference:<br />

• --debug, --no_debug on page 3-55.<br />

Assembler Reference:<br />

• --debug on page 2-9.<br />

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

• The DWARF Debugging Standard web site, http://www.dwarfstd.org/.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!