<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 4 October 2016 at 10:09, Teresa Johnson <span dir="ltr"><<a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Forking this from a discussion here:<div><a href="http://lists.llvm.org/pipermail/llvm-dev/2016-October/105601.html" target="_blank">http://lists.llvm.org/<wbr>pipermail/llvm-dev/2016-<wbr>October/105601.html</a></div><div><br></div><div>It looks like the recent 2.26 versions of ld.bfd has enabled usage of ld.bfd with LLVMgold.so. This combination caused some failures when trying to bootstrap clang with ThinLTO, when ld.bfd was inadvertently used instead of ld.gold (which took awhile to reproduce until we tracked down the difference in linkers being used). The above thread has a small reproducer, which turns out to be an issue with LTO as well (not specific to ThinLTO). It is probably a bug I should file against ld.bfd.</div><div><br></div><div>A few general questions:</div><div><br></div><div>The LLVM documentation at <a href="http://llvm.org/docs/GoldPlugin.html" target="_blank">http://llvm.org/docs/<wbr>GoldPlugin.html</a> indicates:</div><div>   "LTO support on Linux systems requires that you use the gold linker which supports LTO via plugins"</div><div>Should this be updated?</div><div><br></div></div></blockquote><div><br></div><div>It would probably make sense to mention that newer bfds might work but as not as tested.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>Is the usage of LLVMgold.so with ld.bfd a combination being tested by any bots? Should it be?</div><div><br></div></div></blockquote><div><br></div><div>I don't think it is being tested at the moment. If it is already fairly functional it would probably be a good thing to have.</div><div><br></div><div>Cheers,</div><div>Rafael</div><div> </div></div></div></div>