X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gold%2Fcref.cc;h=cd51b845562fd67c691b7675742bfdbd109edba2;hb=196535a69c8568342e62fdf5e3f5ade04470fd6a;hp=84a9e46c84c0efbae64771e51cf6321583b1b85a;hpb=219d1afa89d0d53ca93a684cac341f16470f3ca0;p=deliverable%2Fbinutils-gdb.git diff --git a/gold/cref.cc b/gold/cref.cc index 84a9e46c84..cd51b84556 100644 --- a/gold/cref.cc +++ b/gold/cref.cc @@ -1,6 +1,6 @@ // cref.cc -- cross reference for gold -// Copyright (C) 2008-2018 Free Software Foundation, Inc. +// Copyright (C) 2008-2020 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -236,9 +236,13 @@ Cref_inputs::Cref_table_compare::operator()(const Symbol* s1, } // 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) return false; + if (s1->is_forwarder() && !s2->is_forwarder()) + return true; + if (!s1->is_forwarder() && s2->is_forwarder()) + return false; gold_unreachable(); }