projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Power10 tidies
[binutils-gdb.git]
/
gold
/
cref.cc
diff --git
a/gold/cref.cc
b/gold/cref.cc
index 91f7b9e67eed9e0e78fefdfc3fbedd4cb6df8109..cd51b845562fd67c691b7675742bfdbd109edba2 100644
(file)
--- a/
gold/cref.cc
+++ b/
gold/cref.cc
@@
-1,6
+1,6
@@
// cref.cc -- cross reference for gold
// cref.cc -- cross reference for gold
-// Copyright (C) 2008-20
15
Free Software Foundation, Inc.
+// Copyright (C) 2008-20
20
Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
// Written by Ian Lance Taylor <iant@google.com>.
// 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
}
// 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 == s2)
return false;
+ if (s1->is_forwarder() && !s2->is_forwarder())
+ return true;
+ if (!s1->is_forwarder() && s2->is_forwarder())
+ return false;
gold_unreachable();
}
gold_unreachable();
}