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.5 About linker feedback<br />

5.5.1 See also<br />

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

<strong>Linker</strong> feedback is a collaboration between <strong>the</strong> compiler and linker that can increase <strong>the</strong> amount<br />

of unused code that can be removed from an ELF image.<br />

The feedback option produces a text file containing a list of unused functions, and functions that<br />

have been inlined by <strong>the</strong> linker. This information can be fed back to <strong>the</strong> compiler, which can<br />

rebuild <strong>the</strong> objects, placing <strong>the</strong>se functions in <strong>the</strong>ir own sections. These sections can <strong>the</strong>n be<br />

removed by <strong>the</strong> linker during usual unused section elimination.<br />

The feedback file has <strong>the</strong> following format:<br />

;## <strong>ARM</strong> <strong>Linker</strong>, RVCTN.n [Build num]: Last Updated: day mmm dd hh:mm:ss yyyy<br />

;VERSION 0.2<br />

;FILE filename.o unused_function

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

Saved successfully!

Ooh no, something went wrong!