aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gold/gold.cc17
1 files changed, 10 insertions, 7 deletions
diff --git a/gold/gold.cc b/gold/gold.cc
index ca8c929..a3ead18 100644
--- a/gold/gold.cc
+++ b/gold/gold.cc
@@ -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();