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]

Fix bug in gold deferring layout in the presence of plugins.


Hi,

  The following patch fixes a bug in gold as to when it should defer
layout in the presence of plugins. Ok to submit?

	* plugin.h (should_defer_layout): Modify to check for any_claimed_.


Index: plugin.h
===================================================================
RCS file: /cvs/src/src/gold/plugin.h,v
retrieving revision 1.20
diff -u -u -p -r1.20 plugin.h
--- plugin.h	14 Jul 2011 00:55:18 -0000	1.20
+++ plugin.h	19 Sep 2011 22:49:57 -0000
@@ -243,7 +243,7 @@ class Plugin_manager
   // and we are still in the initial input phase.
   bool
   should_defer_layout() const
-  { return !this->objects_.empty() && !this->in_replacement_phase_; }
+  { return this->any_claimed_ && !this->in_replacement_phase_; }

Thanks,
-Sri.


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