[LLVMdev] LLVM LTO

Rafael Espíndola rafael.espindola at gmail.com
Thu Aug 2 14:12:50 PDT 2012


On 1 August 2012 23:00, Sun, Rui <rui.sun at intel.com> wrote:
> Hi,
>
>
>
> I am trying to use LLVM LTO. I read http://llvm.org/docs/GoldPlugin.html and
> have some questions. Could anyone help?
>
>
>
> 1.       Can LLVMgold.so work with BFD LD instead of gold? In the
> description of changes in binutils 2.20, “* The plugin target has been added
> to bfd. It can load the same shared objects
>
> used by gold and uses them to provide basic support for new file formats.”.
> Does this mean BFD LD after 2.20 can support LLVMgold.so?  Ld version on my
> system is:
>
> GNU ld (GNU Binutils for Ubuntu) 2.21.53.20110810
>

In theory it can, but I think it is completely untested.  I think
that, as with gold, you have to build it with --enable-plugins.

>
> 2.       Gold only supports ELF. If BFD LD can support LLVMgold, can LTO be
> applied to COFF objects after recompiling the binutils with
> target==x86_64-pc-pe?

Double untested, but I guess it could be made to work :-)

>
> Thanks!
>
> Rui
>
>

Cheers,
Rafael




More information about the llvm-dev mailing list