This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fix bug in gold deferring layout in the presence of plugins.
- From: Sriraman Tallam <tmsriram at google dot com>
- To: binutils <binutils at sourceware dot org>, Ian Lance Taylor <iant at google dot com>, Cary Coutant <ccoutant at google dot com>
- Date: Mon, 19 Sep 2011 15:50:28 -0700
- Subject: 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.