<div dir="ltr">The problem is solved. Thank you for your time, Rafael.<div><br></div><div>Previously, my clang uses the ld in /usr/bin. However, I installed the gold plugin to /usr/local/bin. So that clang actually uses the wrong ld.</div>
<div>Now it's fixed by configuring clang to the ld 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 Thu, Dec 5, 2013 at 10:04 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">On 5 December 2013 07:46, Chunbai YANG <<a href="mailto:chunbyang2@gapps.cityu.edu.hk">chunbyang2@gapps.cityu.edu.hk</a>> wrote:<br>

> Dear Rafael,<br>
><br>
> Thank you for your answer. The verbose mode -v shows that clang uses the old<br>
> ld in /usr/bin while I install the gold in /usr/local/bin.<br>
<br>
</div>Clang should be searching the path. What does<br>
<br>
$ which ld<br>
<br>
print? Maybe all that you have to do is<br>
<br>
$ export PATH=/usr/local/bin:$PATH<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div>