diff options
author | Ian Lance Taylor <iant@google.com> | 2007-11-13 20:02:32 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-11-13 20:02:32 +0000 |
commit | 70e654ba489ea64e5ba72c63fc56e8a2d5dfd894 (patch) | |
tree | 1cf9b00a2b70b2c4af79a20890b98fef683f2cc0 /gold/gold.cc | |
parent | 37715c4c6b8a790bae97327987e0fc32f6866adf (diff) | |
download | gdb-70e654ba489ea64e5ba72c63fc56e8a2d5dfd894.zip gdb-70e654ba489ea64e5ba72c63fc56e8a2d5dfd894.tar.gz gdb-70e654ba489ea64e5ba72c63fc56e8a2d5dfd894.tar.bz2 |
From Craig Silverstein: First cut at detecting ODR violations.
Diffstat (limited to 'gold/gold.cc')
-rw-r--r-- | gold/gold.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/gold.cc b/gold/gold.cc index 83bb3f6..a215d0f 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); |