This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Call plugin_active_plugins_p to check plugin support


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]