summaryrefslogtreecommitdiff
path: root/gold/gold.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-11-13 20:02:32 +0000
committerIan Lance Taylor <iant@google.com>2007-11-13 20:02:32 +0000
commit66a4a9224c87ac7e19ceab4bd1cba124db0267da (patch)
treed381248e4767933611680fc5ce4d22f55a55778b /gold/gold.cc
parent00dda27978aa981fafc096c1f51b04c5256695b3 (diff)
downloadbinutils-redhat-66a4a9224c87ac7e19ceab4bd1cba124db0267da.tar.gz
From Craig Silverstein: First cut at detecting ODR violations.
Diffstat (limited to 'gold/gold.cc')
-rw-r--r--gold/gold.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/gold.cc b/gold/gold.cc
index 83bb3f6065..a215d0f31d 100644
--- a/gold/gold.cc
+++ b/gold/gold.cc
@@ -180,6 +180,10 @@ queue_middle_tasks(const General_options& options,
(*input_objects->dynobj_begin())->name().c_str());
}
+ // See if any of the input definitions violate the One Definition Rule.
+ // TODO: if this is too slow, do this as a task, rather than inline.
+ symtab->detect_odr_violations();
+
// Define some sections and symbols needed for a dynamic link. This
// handles some cases we want to see before we read the relocs.
layout->create_initial_dynamic_sections(input_objects, symtab);