// errors.cc -- handle errors for gold
-// Copyright (C) 2006-2016 Free Software Foundation, Inc.
+// Copyright (C) 2006-2022 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
fputc('\n', stderr);
}
+// Print a trace message.
+
+void
+Errors::trace(const char* format, va_list args)
+{
+ vfprintf(stdout, format, args);
+ fputc('\n', stdout);
+}
+
// Report an error at a reloc location.
template<int size, bool big_endian>
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.
va_end(args);
}
+// Print a trace message (to stdout).
+
+void
+gold_trace(const char* format, ...)
+{
+ va_list args;
+ va_start(args, format);
+ parameters->errors()->trace(format, args);
+ va_end(args);
+}
+
// Report an error at a location.
template<int size, bool big_endian>