<div dir="ltr">Thank you for finding an issue! If you have a reproduce file, please share it with me.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 15, 2017 at 10:18 AM, Ed Maste <span dir="ltr"><<a href="mailto:emaste@freebsd.org" target="_blank">emaste@freebsd.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 12 October 2017 at 21:19, Rui Ueyama via llvm-commits<br>
<span class=""><<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br>
> Author: ruiu<br>
> Date: Thu Oct 12 18:19:10 2017<br>
> New Revision: 315658<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=315658&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=315658&view=rev</a><br>
> Log:<br>
> Slightly simplify code and add comment.<br>
><br>
> This is not a mechanical transformation. Even though I believe this<br>
> patch is correct, I'm not 100% sure if lld with this patch behaves<br>
> exactly the same way as before on all edge cases. At least all tests<br>
> still pass.<br>
<br>
</span>Hi Rui,<br>
<br>
I can confirm that lld does in fact not behave exactly the same way<br>
with this patch :)<br>
<br>
I was investigating lld on FreeBSD/i386, and found that with lld 5.0.1<br>
in FreeBSD-HEAD we encounter an assertion failure from libc at<br>
startup, for all dynamically linked i386 binaries. Testing with lld<br>
HEAD was successful. Bisection turned up r315658 - it was a bit tricky<br>
because r315552 introduced a regression that caused libc to fail to<br>
link, fixed in r315737. In any case, r315658 has the pleasant<br>
side-effect of fixing lld for FreeBSD/i386.<br>
<br>
I'm investigating the differences in the output .so when linked with<br>
lld with/without this patch and will follow up with my findings. I'd<br>
like to try to add a test case for the behaviour that changed so that<br>
we can ensure it doesn't regress, then Dimitry or I will likely merge<br>
it into the lld 5.0.1 in FreeBSD.<br>
</blockquote></div><br></div>