X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gold%2Fcref.cc;h=79e02d451238537ff32e49c6aea19089ecb00a76;hb=9db78678c7c08760fe1eff7d94a5989cf2fc4145;hp=91f7b9e67eed9e0e78fefdfc3fbedd4cb6df8109;hpb=b90efa5b79ac1524ec260f8eb89d1be37e0219a7;p=binutils-gdb.git diff --git a/gold/cref.cc b/gold/cref.cc index 91f7b9e67ee..79e02d45123 100644 --- a/gold/cref.cc +++ b/gold/cref.cc @@ -1,6 +1,6 @@ // cref.cc -- cross reference for gold -// Copyright (C) 2008-2015 Free Software Foundation, Inc. +// Copyright (C) 2008-2022 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(); }