aboutsummaryrefslogtreecommitdiff
path: root/gold/gold.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-28 20:35:39 +0000
committerIan Lance Taylor <iant@google.com>2008-02-28 20:35:39 +0000
commit0dfbdef4c43cfe12bb3e2505ebe5acc651a35c98 (patch)
treefe965d8393ecdd9c81b7f29ff4ce89fdd79d92c6 /gold/gold.cc
parentda769d5629564b82d4eec1b256ffc562d5c01624 (diff)
downloadfsf-binutils-gdb-0dfbdef4c43cfe12bb3e2505ebe5acc651a35c98.zip
fsf-binutils-gdb-0dfbdef4c43cfe12bb3e2505ebe5acc651a35c98.tar.gz
fsf-binutils-gdb-0dfbdef4c43cfe12bb3e2505ebe5acc651a35c98.tar.bz2
Support -d/--define-common.
Diffstat (limited to 'gold/gold.cc')
-rw-r--r--gold/gold.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/gold/gold.cc b/gold/gold.cc
index f6437a8..2ac1a67 100644
--- a/gold/gold.cc
+++ b/gold/gold.cc
@@ -254,9 +254,7 @@ queue_middle_tasks(const General_options& options,
// Allocate common symbols. This requires write access to the
// symbol table, but is independent of the relocation processing.
- // FIXME: We should have an option to do this even for a relocatable
- // link.
- if (!parameters->options().relocatable())
+ if (parameters->options().define_common())
{
blocker->add_blocker();
workqueue->queue(new Allocate_commons_task(options, symtab, layout,