gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gold / cref.cc
index 91f7b9e67eed9e0e78fefdfc3fbedd4cb6df8109..cd51b845562fd67c691b7675742bfdbd109edba2 100644 (file)
@@ -1,6 +1,6 @@
 // cref.cc -- cross reference for gold
 
-// Copyright (C) 2008-2015 Free Software Foundation, Inc.
+// Copyright (C) 2008-2020 Free Software Foundation, Inc.
 // 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
-  // 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();
 }
 
This page took 0.024384 seconds and 4 git commands to generate.