public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PATCH: PR ld/12247: Useless BFD linker plugin error message
@ 2010-11-20 17:30 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2010-11-20 17:30 UTC (permalink / raw)
  To: binutils

I am checking in this patch to properly report loading plugin error.

H.J.
---
2010-11-20  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/12247
	* lexsup.c (parse_args): Properly report loading plugin error.

diff --git a/ld/lexsup.c b/ld/lexsup.c
index 39ca326..b6274f8 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -1056,7 +1056,8 @@ parse_args (unsigned argc, char **argv)
 #ifdef ENABLE_PLUGINS
 	case OPTION_PLUGIN:
 	  if (plugin_opt_plugin (optarg))
-	    einfo(_("%P%F: bad -plugin option\n"));
+	    einfo (_("%P%F: %s: error loading plugin\n"),
+		   plugin_error_plugin ());
 	  break;
 	case OPTION_PLUGIN_OPT:
 	  if (plugin_opt_plugin_arg (optarg))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-20 17:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-20 17:30 PATCH: PR ld/12247: Useless BFD linker plugin error message H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).