[gdb/testsuite] Fix info-var.exp for debug info from other files
[external/binutils.git] / gold / errors.cc
index f90e53f..8c6c824 100644 (file)
@@ -1,6 +1,6 @@
 // errors.cc -- handle errors for gold
 
-// Copyright (C) 2006-2016 Free Software Foundation, Inc.
+// Copyright (C) 2006-2019 Free Software Foundation, Inc.
 // Written by Ian Lance Taylor <iant@google.com>.
 
 // This file is part of gold.
@@ -198,6 +198,9 @@ Errors::undefined_symbol(const Symbol* sym, const std::string& location)
     gold_info(_("%s: the vtable symbol may be undefined because "
                "the class is missing its key function"),
              program_name);
+  if (sym->is_placeholder())
+    gold_info(_("%s: the symbol should have been defined by a plugin"),
+             program_name);
 }
 
 // Issue a debugging message.