// We should never have two different symbols with the same name and
- // version.
+ // version, where one doesn't forward to the other.
if (s1 == s2)
+ if (s1->is_forwarder() && !s2->is_forwarder())
+ return true;
+ if (!s1->is_forwarder() && s2->is_forwarder())
+ return false;
Re: [gold patch] When comparing two symbols, handle the forwarding case
On Fri, Jan 12, 2018 at 9:24 AM, Cary Coutant <[hidden email]> wrote:
>> 2018-1-10 Sterling Augustine <[hidden email]>
>> * cref.cc (Cref_inputs::Cref_table_compare::operator): Add conditionals and
>> calls to is_forwarder
> This is OK, but please s/-1-/-01-/ in the ChangeLog. Thanks!
Done, committed, and backported to release branches thanks to Eric Christopher.