LTO object file layout (GNU Compiler Collection (GCC) Internals) (original) (raw)

LTO information is stored in several ELF sections inside object files. Data structures and enum codes for sections are defined inlto-streamer.h.

These sections are emitted from lto-streamer-out.cc and mapped in all at once from lto/lto.cc:lto_file_read. The individual functions dealing with the reading/writing of each section are described below.