<div dir="ltr"><a class="gmail_plusreply" id="plusReplyChip-0" href="mailto:maskray@google.com" tabindex="-1">+Fangrui Song</a> <br><br>Yeah, that sounds like a bug to me.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 20, 2020 at 5:25 PM Alexander Yermolovich via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Hello.<br>
<br>
I have been looking in to what relocs are emitted when --emit-relcos and --gc-sections flags are set.<br>
Seems like relocs sections for .debug_* are not emitted. <br>
Looking into it the debug sections are marked live in MarkLive.cpp:MarkLive on first pass through all the inputSections, but their dependendSections are not marked as live.<br>
It then goes to rest of the algorithm that handles some special sections, but mainly deals with sections based on defined symbols in symtab. <br>
<br>
As the result when -gc-sections flag is set relocations for debug_* would not be in output. Is that intentional, or oversight?<br>
<br>
Thank You</div>
</div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>