projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb/testsuite: introduce gdb_step_until
[binutils-gdb.git]
/
gold
/
cref.cc
diff --git
a/gold/cref.cc
b/gold/cref.cc
index ac6f1c855de48c085faa4145be506852dceb7e94..79e02d451238537ff32e49c6aea19089ecb00a76 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
14
Free Software Foundation, Inc.
+// Copyright (C) 2008-20
22
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();
}