From: Ian Lance Taylor Date: Thu, 6 Dec 2007 05:00:00 +0000 (+0000) Subject: Don't write out the symbol table when stripping. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=116724f39dfd22a6168ed42d33910f45e1c1248d;p=binutils-gdb.git Don't write out the symbol table when stripping. --- 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();