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.

5.18 About merging comment sections<br />

5.18.1 See also<br />

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

If input object files have any .comment sections that are identical, <strong>the</strong>n <strong>the</strong> linker merges <strong>the</strong>m to<br />

produce <strong>the</strong> smallest .common section while retaining all useful information.<br />

The linker associates each input .comment section with <strong>the</strong> filename of <strong>the</strong> corresponding input<br />

object. If it merges identical .comment sections, <strong>the</strong>n all <strong>the</strong> filenames that contain <strong>the</strong> common<br />

section are listed before <strong>the</strong> section contents, for example:<br />

file1.o<br />

file2.o<br />

.comment section contents.<br />

The linker merges <strong>the</strong>se sections by default. To prevent <strong>the</strong> merging of identical .comment<br />

sections, use <strong>the</strong> --no_filtercomment command-line option.<br />

Note<br />

If you do not want to retain <strong>the</strong> information in a .comment section, <strong>the</strong>n you can use <strong>the</strong><br />

--no_comment_section option to strip this section from <strong>the</strong> image.<br />

Reference<br />

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

• --comment_section, --no_comment_section on page 2-34<br />

• --filtercomment, --no_filtercomment on page 2-69<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!