<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 7, 2016 at 10:50 AM Greg Clayton via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">clayborg added a comment.<br class="gmail_msg">
<br class="gmail_msg">
Ah, I missed the extra "gnu" in the pubnames and pubtypes. If these sections don't exist, can we generate them on the fly using common code and then use the generated data?<br class="gmail_msg"></blockquote><div><br></div><div>In some cases.<br><br>When using Fission we cannot - the pubnames go in the .o files, the DWARF with the entities goes in the .dwo file. That's the big reason for this feature - so that your debugger has an index and knows which .dwo files to go to without needing to look at all of them first (& not even your linker needs to look at all of them - indeed your linker need not have access to your .dwo files at all)<br><br>In non-fission cases, you could parse all the DWARF in the linker and compute these values, but that's a lot more work for the linker to do compared to a table provided by the compiler in the object file. It could be a fallback, but I don't think anyone has a need for that fallback at the moment.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br class="gmail_msg">
<br class="gmail_msg">
<a href="https://reviews.llvm.org/D26283" rel="noreferrer" class="gmail_msg" target="_blank">https://reviews.llvm.org/D26283</a><br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
</blockquote></div></div>