Don't write out the symbol table when stripping.
authorIan Lance Taylor <iant@google.com>
Thu, 6 Dec 2007 05:00:00 +0000 (05:00 +0000)
committerIan Lance Taylor <iant@google.com>
Thu, 6 Dec 2007 05:00:00 +0000 (05:00 +0000)
gold/gold.cc

index ca8c9298a50386c4838557aa0f333c4f8cb4e10c..a3ead18fe3d743ce8f5a8ea77f8e72f623f5e162 100644 (file)
@@ -286,13 +286,16 @@ queue_final_tasks(const General_options& options,
     }
 
   // Queue a task to write out the symbol table.
-  final_blocker->add_blocker();
-  workqueue->queue(new Write_symbols_task(symtab,
-                                         input_objects,
-                                         layout->sympool(),
-                                         layout->dynpool(),
-                                         of,
-                                         final_blocker));
+  if (!options.strip_all())
+    {
+      final_blocker->add_blocker();
+      workqueue->queue(new Write_symbols_task(symtab,
+                                             input_objects,
+                                             layout->sympool(),
+                                             layout->dynpool(),
+                                             of,
+                                             final_blocker));
+    }
 
   // Queue a task to write out the output sections.
   output_sections_blocker->add_blocker();