<br><br><div class="gmail_quote">On Tue, Mar 22, 2011 at 9:19 AM, Rafael Avila de Espindola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On 11-03-21 10:35 PM, Sangmin Park wrote:<br>
> Hi,<br>
><br>
> I fixed error by using different version of ld with LLVM 2.7.<br>
> I used ld.gold that comes with Ubuntu 10.04.<br>
> Here is the version info:<br>
><br>
> sangmin@sangmin-desktop:/tmp$ ld -v<br>
> GNU gold (GNU Binutils for Ubuntu 2.20.1-system.20100303) 1.9<br>
><br>
> My experience of gold plugin is as follows:<br>
><br>
> LLVM 2.7 (with libLLVMgold.so) + ld 2.20.1 (from Ubuntu 10.04) : O<br>
> LLVM 2.7 (with libLLVMgold.so) + ld 2.21.51 (manually compiled) : X<br>
> LLVM 2.8 (with LLVMgold.so) + ld 2.20.1 (from Ubuntu 10.04): X<br>
> LLVM 2.8 (with LLVMgold.so) + ld 2.21.51 (manually compiled): X<br>
><br>
> When compiling (lib)LLVMgold.so file, I used the source file from ld<br>
> 2.21.51.<br>
><br>
> I can work with LLVM 2.7 and ld 2.20.1 now, but am curious with the result.<br>
> Can you explain what part I did wrong?<br>
><br>
> Thanks,<br>
> Sangmin<br>
><br>
><br>
><br>
> On Mon, Mar 21, 2011 at 9:13 PM, Sangmin Park <<a href="mailto:sangmin.park@gmail.com">sangmin.park@gmail.com</a><br>
</div><div class="im">> <mailto:<a href="mailto:sangmin.park@gmail.com">sangmin.park@gmail.com</a>>> wrote:<br>
><br>
>     Hi all,<br>
><br>
>     I got an error from the gold plugin example in the following link:<br>
>     <a href="http://llvm.org/docs/GoldPlugin.html#example1" target="_blank">http://llvm.org/docs/GoldPlugin.html#example1</a><br>
><br>
>     Here is the error message:<br>
><br>
>     sangmin@sangmin-desktop:/tmp$ llvm-gcc -use-gold-plugin a.a b.o -o main<br>
>     /usr/bin/ld: error: a.a: no archive symbol table (run ranlib)<br>
<br>
</div>Looks like ar is not using the plugin. Have you created the links in<br>
bfd-plugins? Can you run nm in a IL file?<br>
<br></blockquote><div><br></div><div>I have created the links in bfd-plugins, but I had some mistakes in handling versions. Now, I found that all combinations of versions work well for the example.</div><div><br></div><div>

By the way, how can I manually check whether ar and nm work?</div><div><br></div><div>Thanks,</div><div>Sangmin</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


Cheers,<br>
Rafael<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br>