[LLVMdev] What are the optimizations that gold uses during the final link stage?

Rafael Espindola espindola at google.com
Tue Aug 31 10:43:43 PDT 2010

> I am not sure why "before it is optimized?". May be this is gold specific ?
> One of the use of this utility is a debugging aid. The linker can select to do this when -save-temps is used on the command line.

I think an example will explain. Lets say we have a function foo that
is unused. The output of lto_codegen_write_merged_modules will have
foo in it, but it will be marked as an internal function. The .o
produced by libLTO will not have foo anymore.

> -
> Devang

Rafael Ávila de Espíndola

More information about the llvm-dev mailing list