diff options
author | Doug Kwan <dougkwan@google.com> | 2010-04-15 00:42:15 +0000 |
---|---|---|
committer | Doug Kwan <dougkwan@google.com> | 2010-04-15 00:42:15 +0000 |
commit | 04ceb17cc3c01f9c25a77a6b3b7c53822a77c21c (patch) | |
tree | 33a37c47acce8996c4df7d5cda82e05973348595 /gold/gold.cc | |
parent | 7a8f71bfab75fd5408d3ab4e5179db64a582e3f7 (diff) | |
download | gdb-04ceb17cc3c01f9c25a77a6b3b7c53822a77c21c.zip gdb-04ceb17cc3c01f9c25a77a6b3b7c53822a77c21c.tar.gz gdb-04ceb17cc3c01f9c25a77a6b3b7c53822a77c21c.tar.bz2 |
2010-04-14 Doug Kwan <dougkwan@google.com>
* arm.cc (Arm_output_section::fix_exidx_coverage): Mark object
for local symbol recounting if we remove a section due to ICF.
* gold.cc (queue_middle_gc_tasks): Create a dummy blocker if
there are no regular objects in input.
Diffstat (limited to 'gold/gold.cc')
-rw-r--r-- | gold/gold.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gold/gold.cc b/gold/gold.cc index b5508ae..ba02db2 100644 --- a/gold/gold.cc +++ b/gold/gold.cc @@ -276,6 +276,16 @@ queue_middle_gc_tasks(const General_options& options, next_blocker)); this_blocker = next_blocker; } + + // If we are given only archives in input, we have no regular + // objects and THIS_BLOCKER is NULL here. Create a dummy + // blocker here so that we can run the middle tasks immediately. + if (this_blocker == NULL) + { + gold_assert(input_objects->number_of_relobjs() == 0); + this_blocker = new Task_token(true); + } + workqueue->queue(new Task_function(new Middle_runner(options, input_objects, symtab, |