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.

3. Creates <strong>the</strong> output image.<br />

5.7.3 About <strong>the</strong> intermediate object files generated by link-time code generation<br />

5.7.4 See also<br />

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

An intermediate ELF object file generated by link-time code generation (LTCG) includes a<br />

section called .il, This section is marked with <strong>the</strong> flags SHF_EXECINSTR and SHF_ALLOC.<br />

<strong>Using</strong> <strong>the</strong> intermediate object file one.o from <strong>the</strong> example, you can use <strong>the</strong> fromelf command to<br />

view <strong>the</strong>se sections, for example:<br />

fromelf --text -v one.o<br />

...<br />

====================================<br />

** Section #1<br />

Name : .il<br />

Type : SHT_PROGBITS (0x00000001)<br />

Flags : SHF_ALLOC + SHF_EXECINSTR (0x00000006)<br />

...<br />

Link : SHN_UNDEF<br />

...<br />

====================================<br />

** Section #3<br />

Name : .rel.il<br />

Type : SHT_REL (0x00000009)<br />

Flags : None (0x00000000)<br />

...<br />

Link : Section 2 (.symtab)<br />

Info : Section 1 (.il)<br />

...<br />

====================================<br />

...<br />

Concepts<br />

<strong>Using</strong> <strong>the</strong> <strong>Compiler</strong>:<br />

• About Profiler-guided optimization on page 5-3<br />

• Profiler-guided optimizations with link-time code generation on page 5-4.<br />

Reference<br />

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

• --entry=location on page 2-58<br />

• --ltcg on page 2-106.<br />

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

• -c on page 3-31<br />

• --ltcg on page 3-141.<br />

<strong>Using</strong> <strong>the</strong> fromelf Image Converter:<br />

• --text on page 4-73.<br />

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

ID080411 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!