Hello,<br><br>I down loaded "llvm-gcc4.2-2.7-x86_64-linux" and I built Spec2006 with
it. It is great and except for one benchmark the rest work fine. I want to build them with LTO now. I followed the directions in
"<a href="http://llvm.org/docs/GoldPlugin.html">http://llvm.org/docs/GoldPlugin.html</a>" and built ar, nm-new, and ld-new
in binutils. I also built libLLVMgold.so.<br>I get the following error:<br><br>llvm-gcc: -use-gold-plugin, but libLLVMgold.so not found.<br><br>The command I used with the example in "<a href="http://llvm.org/docs/GoldPlugin.html">http://llvm.org/docs/GoldPlugin.html</a>" is:<br>
<br>/home/reza/llvm-gcc4.2-2.7-x86_64-linux/bin/llvm-gcc -use-gold-plugin a.a b.o -o main<br><br>I put 
  <tt>libLLVMgold.so</tt> to <tt>/usr/lib/bfd-plugins </tt>and ar, nm-new and ld-new in /usr/bin/ar and /usr/bin/nm and /usr/bin/ld respectively.<br><br>If I use the load by itself I get:<br><br>ld -plugin /usr/lib/bfd-plugins/libLLVMgold.so a.a b.o -o main<br>
<br>it loads but I get:<br><br>reza@reza-desktop:~/gcc/trunk/test/mytest$ ./main<br>Segmentation fault<br><br>Thanks,<br>Reza<br>