From 116724f39dfd22a6168ed42d33910f45e1c1248d Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 6 Dec 2007 05:00:00 +0000 Subject: [PATCH] Don't write out the symbol table when stripping. --- gold/gold.cc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/gold/gold.cc b/gold/gold.cc index ca8c9298a50..a3ead18fe3d 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(); -- 2.30.2