<div dir="ltr">Dear Rafael,<div><br></div><div>Thank you for your answer. The verbose mode -v shows that clang uses the old ld in /usr/bin while I install the gold in /usr/local/bin.</div><div><br></div><div>Regards,</div>
<div>Chunbai</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 9:23 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">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">> Could anyone tell me where my mistake is?<br>
<br>
</div>Try running<br>
<br>
clang -flto a.o b.o -o main -v<br>
<br>
it should print how clang is running the linker. See if it is running<br>
the linker you expect and if it is passing -plugin to it.<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div>