gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gold / cref.cc
index c36f989635ce87c4cea4ae7db9a18435d6e898a3..cd51b845562fd67c691b7675742bfdbd109edba2 100644 (file)
@@ -1,6 +1,6 @@
 // cref.cc -- cross reference for gold
 
-// Copyright 2008, 2010 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.
@@ -64,7 +64,7 @@ class Cref_inputs
   void
   print_symbol_counts(const Symbol_table*, FILE*) const;
 
-  // Print a cross reference tabl.e
+  // Print a cross reference table.
   void
   print_cref(const Symbol_table*, FILE*) const;
 
@@ -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.026894 seconds and 4 git commands to generate.