<div dir="ltr">Implementation can be simplified than, thanks. Do you know why clang puts comdat section relocs to .rela.debug_line, when one is using -ffunction-sections? It looks like this confronts the specification.</div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-16 15:28 GMT+03:00 Rafael EspĂ­ndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On 15 September 2016 at 13:43, Eugene Leviant <span dir="ltr"><<a href="mailto:evgeny.leviant@gmail.com" target="_blank">evgeny.leviant@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">evgeny777 created this revision.<br>
evgeny777 added reviewers: ruiu, rafael.<br>
evgeny777 added subscribers: grimar, llvm-commits.<br>
evgeny777 set the repository for this revision to rL LLVM.<br>
evgeny777 added a project: lld.<br>
<br>
This patch fixes two things<br>
<br>
1) If any section within comdat group is marked Live an entire group is marked live.<br></blockquote><div><br></div><div><br></div><div><br></div></span><div>I don't think we should do this. That is not what gold does and I think it is an important feature to be able to gc part of a comdat.</div><div><br></div><div>The abi implemented by gcc/clang will put multiple destructors in the same comdat (D0/D1/D2) and the linker should be able to remove unused ones.</div><div><br></div><div>Cheers,</div><div>Rafael</div><div><br></div></div></div></div>
</blockquote></div><br></div>