[LLVMdev] gold plugin use

Swarup Kumar Sahoo ssahoo2 at illinois.edu
Thu Mar 11 08:39:57 PST 2010


>
>> Yes, ar and nm actually take -plugin option and if I pass this option, then I don't get these errors. But, llvm-gcc doesn't automatically pass this option to ar.
>
>You probably just need to copy the gold plugin to
>$PREFIX/lib/bfd-plugins. Let me know if that works. If not I will
>check if there is a bug in the plugin search in binutils.

There is no problem in plugin search. If I give -plugin \path\to\plugin option to ar and nm, they are working fine. But, llvm-gcc doesn't pass this option to ar and nm automatically, so when I compile apache, I get those errors. When I wrote a small script to run ar with -plugin option for compiling apache, then I don't get these errors. 

BTW, there is no directory called bfd_plugins inside lib. I think, there is some mistake in the documentation. I just copied the plugin to /lib directory and it works fine.

-Swarup.

>
>Cheers,
>-- 
>Rafael Ávila de Espíndola

*************************************
Swarup Kumar Sahoo
Thomas M. Siebel Center for Computer Science
University of Illinois at Urbana Champaign
201 N Goodwin Avenue
Urbana, IL-61801
Phone - 614 264 9574




More information about the llvm-dev mailing list