Don't write out the symbol table when stripping.

This commit is contained in:
Ian Lance Taylor
2007-12-06 05:00:00 +00:00
parent 62c4f6b3c9
commit 116724f39d

View File

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