2010-04-14 Doug Kwan <dougkwan@google.com>
authorDoug Kwan <dougkwan@google.com>
Thu, 15 Apr 2010 00:42:15 +0000 (00:42 +0000)
committerDoug Kwan <dougkwan@google.com>
Thu, 15 Apr 2010 00:42:15 +0000 (00:42 +0000)
* 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.

gold/ChangeLog
gold/arm.cc
gold/gold.cc

index 0fd5fde05d0a411528d50a498eddf940ffa89c00..d553e1b55e37e92a8a5c25767488acdc140ac246 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
 2010-04-13  Doug Kwan  <dougkwan@google.com>
 
        * arm.cc (Arm_input_section::set_final_data_size): Compute
index 036160fc771a3cc6bcd03addad880fc5497dad17..028069bdc71f95833b82f264fa2d2fb9bf2bb215 100644 (file)
@@ -5696,8 +5696,10 @@ Arm_output_section<big_endian>::fix_exidx_coverage(
          unsigned int text_shndx = exidx_input_section->link();
          gold_assert(symtab->is_section_folded(p->relobj(), text_shndx));
 
-         // Remove this from link.
+         // Remove this from link.  We also need to recount the
+         // local symbols.
          p->relobj()->set_output_section(p->shndx(), NULL);
+         arm_relobj->set_output_local_symbol_count_needs_update();
        }
     }
     
index b5508aef47da791bd0df59786998f33f3d5f951a..ba02db2f1bfd1398acede50bea46b5177df2bce4 100644 (file)
@@ -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,
This page took 0.036903 seconds and 4 git commands to generate.