<div dir="ltr">Thanks Rafael, I prefer the solution of setting IsUsed based on symbols.<div><br></div><div>Your attached patch LGTM as well. The code move I did in D19490 seems like a useful independent cleanup, so I'll rebase it onto your change as an NFC.</div><div><br></div><div>Peter</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 26, 2016 at 7:08 AM, Rafael Espíndola <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">So, the fundamental problem had nothing to do with gc-sections.<br>
<br>
The problem was that we were setting IsUsedInRegularObj based on<br>
symbols but IsUsed based on relocations. I fixed that by setting<br>
IsUsed based on symbols. That matches what bfd and gold do and is<br>
simpler. IsUsed now just means that one of the symbol in that .so<br>
IsUsedInRegularObj.<br>
<br>
With that, the attached patch should fix the problem that is blocking<br>
adding version info, no?<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">-- <div>Peter</div></div></div>
</div>