X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gold%2Ferrors.cc;h=2b022e78840ecd0c8118e465b5625ca41db17d55;hb=06a6207a1ab458521656f293bb1ca8fd013d6f7c;hp=b79764bd1d8285308e7bef6468e929c3279b18ef;hpb=e6455dfbc2dae8cc91f64b4120e87e138970cf84;p=deliverable%2Fbinutils-gdb.git diff --git a/gold/errors.cc b/gold/errors.cc index b79764bd1d..2b022e7884 100644 --- a/gold/errors.cc +++ b/gold/errors.cc @@ -1,6 +1,6 @@ // errors.cc -- handle errors for gold -// Copyright 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. +// Copyright (C) 2006-2020 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -193,6 +193,14 @@ Errors::undefined_symbol(const Symbol* sym, const std::string& location) fprintf(stderr, _("%s: %s: undefined reference to '%s', version '%s'\n"), location.c_str(), zmsg, sym->demangled_name().c_str(), version); + + if (sym->is_cxx_vtable()) + 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.