<div dir="ltr">This patch is a demonstration what I was thinking when I was reviewing Igor's patch, so feel free to take it. I could finish this if you want, but it'd probably be easier for you to do that yourself.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 21, 2017 at 4:34 AM, Rafael Avila de Espindola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">One more thing:<br>
<br>
>-      if (!S->isWeak())<br>
>-        File->IsUsed = true;<br>
>+      if (!Config->GcSections && !S->isWeak())<br>
>+        File->IsNeeded = true;<br>
<br>
Please leave the GcSections check for the next patch. That way this<br>
patch is just a cleanup on how we compute IsNeeded.<br>
<br>
It is probably OK with that, but pleas upload an updated version for a<br>
final check.<br>
<br>
Thanks,<br>
Rafael<br>
</blockquote></div><br></div>