diff options
author | Sriraman Tallam <tmsriram@google.com> | 2012-07-16 19:00:18 +0000 |
---|---|---|
committer | Sriraman Tallam <tmsriram@google.com> | 2012-07-16 19:00:18 +0000 |
commit | b7fd7c377d73ed78d6f4e7127aab381276a5d8ac (patch) | |
tree | 852c8ad40d05fa974f61d0aa950df5498fea939e /gold/gold.cc | |
parent | 5049c5be7e592f5498c391c0273517944d67142d (diff) | |
download | fsf-binutils-gdb-b7fd7c377d73ed78d6f4e7127aab381276a5d8ac.zip fsf-binutils-gdb-b7fd7c377d73ed78d6f4e7127aab381276a5d8ac.tar.gz fsf-binutils-gdb-b7fd7c377d73ed78d6f4e7127aab381276a5d8ac.tar.bz2 |
2012-07-16 Sriraman Tallam <tmsriram@google.com>
* gold.cc (queue_middle_tasks): Update function order only after
deferred objects due to plugins are processed.
Diffstat (limited to 'gold/gold.cc')
-rw-r--r-- | gold/gold.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gold/gold.cc b/gold/gold.cc index 013702f..dddf5ad 100644 --- a/gold/gold.cc +++ b/gold/gold.cc @@ -545,6 +545,14 @@ queue_middle_tasks(const General_options& options, } } + // Layout deferred objects due to plugins. + if (parameters->options().has_plugins()) + { + Plugin_manager* plugins = parameters->options().plugins(); + gold_assert(plugins != NULL); + plugins->layout_deferred_objects(); + } + /* If plugins have specified a section order, re-arrange input sections according to a specified section order. If --section-ordering-file is also specified, do not do anything here. */ @@ -559,14 +567,6 @@ queue_middle_tasks(const General_options& options, (*p)->update_section_layout(layout->get_section_order_map()); } - // Layout deferred objects due to plugins. - if (parameters->options().has_plugins()) - { - Plugin_manager* plugins = parameters->options().plugins(); - gold_assert(plugins != NULL); - plugins->layout_deferred_objects(); - } - if (parameters->options().gc_sections() || parameters->options().icf_enabled()) { |