aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-12-06 05:00:00 +0000
committerIan Lance Taylor <iant@google.com>2007-12-06 05:00:00 +0000
commit116724f39dfd22a6168ed42d33910f45e1c1248d (patch)
treed9d444b29c5d9ea73da8b353abe4e1e4face1c84 /gold
parent62c4f6b3c9ff0f90d0a6ac409128f5c13a4c304c (diff)
downloadgdb-116724f39dfd22a6168ed42d33910f45e1c1248d.zip
gdb-116724f39dfd22a6168ed42d33910f45e1c1248d.tar.gz
gdb-116724f39dfd22a6168ed42d33910f45e1c1248d.tar.bz2
Don't write out the symbol table when stripping.
Diffstat (limited to 'gold')
-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();