This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Call plugin_active_plugins_p to check plugin support
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Wed, 1 Dec 2010 17:32:05 -0800
- Subject: PATCH: Call plugin_active_plugins_p to check plugin support
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
This pacth calls plugin_active_plugins_p to check plugin support
before making plugin calls. OK for trunk?
Thanks.
H.J.
2010-12-01 H.J. Lu <hongjiu.lu@intel.com>
* ldlang.c (lang_process): Call plugin_active_plugins_p to
check plugin support.
diff --git a/ld/ldlang.c b/ld/ldlang.c
index f74c1b5..49d58ed 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -6419,6 +6419,7 @@ lang_process (void)
open_input_bfds (statement_list.head, FALSE);
#ifdef ENABLE_PLUGINS
+ if (plugin_active_plugins_p ())
{
union lang_statement_union **listend;
/* Now all files are read, let the plugin(s) decide if there