<div dir="auto"><div>Can you show me the code in question? It may be that this is a bug in your code.<div dir="auto"><br></div><div dir="auto">Peter</div><br><div class="gmail_extra"><br><div class="gmail_quote">On Dec 7, 2016 9:36 AM, "Petr Hosek via Phabricator" <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">phosek added a comment.<br>
<br>
We run into this issue again in our codebase when linking the C library (based on musl) with lld. I've reduced that case into a new test case which I've added to the patch. While the solution that Ian suggested may be the "right thing", it's clearly not what BFD ld nor gold implement and it's unlikely that their implementation is going to change. Since there is code out there relying on this behavior, it'd be useful for lld to support it.<br>
<div class="elided-text"><br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D26133" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D26133</a><br>
<br>
<br>
<br>
</div></blockquote></div><br></div></div></div>