This is the mail archive of the binutils-cvs@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]

[binutils-gdb] Replace entry->the_bfd with ibfd


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9384389406b55ffac5ea34ead9a34f23b8cdf72e

commit 9384389406b55ffac5ea34ead9a34f23b8cdf72e
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sat Feb 7 12:50:17 2015 -0800

    Replace entry->the_bfd with ibfd
    
    	* plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
    	ibfd.

Diff:
---
 ld/ChangeLog | 5 +++++
 ld/plugin.c  | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index d7125ff..00c9466 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,10 @@
 2015-02-07  H.J. Lu  <hongjiu.lu@intel.com>
 
+	* plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
+	ibfd.
+
+2015-02-07  H.J. Lu  <hongjiu.lu@intel.com>
+
 	* plugin.c: Include "libbfd.h".
 	(plugin_strdup): New.
 	(plugin_maybe_claim): Remove the argument of pointer to struct
diff --git a/ld/plugin.c b/ld/plugin.c
index 30e4ab4..c4116fb 100644
--- a/ld/plugin.c
+++ b/ld/plugin.c
@@ -1061,7 +1061,7 @@ plugin_maybe_claim (lang_input_statement_type *entry)
     einfo (_("%P%F: %s: plugin reported error claiming file\n"),
 	   plugin_error_plugin ());
 
-  if (input->fd != -1 && bfd_check_format (entry->the_bfd, bfd_object))
+  if (input->fd != -1 && bfd_check_format (ibfd, bfd_object))
     {
       /* FIXME: fd belongs to us, not the plugin.  IR for GCC plugin,
 	 which doesn't need fd after plugin_call_claim_file, is


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