From Craig Silverstein: Rework debug info code a bit, add option for

ODR violations, add test case.
This commit is contained in:
Ian Lance Taylor
2007-11-14 01:03:01 +00:00
parent b3c8c50a8f
commit a55ce7febf
15 changed files with 174 additions and 75 deletions

View File

@@ -353,6 +353,9 @@ options::Command_line_options::options[] =
&Position_dependent_options::set_static_search),
GENERAL_NOARG('\0', "Bsymbolic", N_("Bind defined symbols locally"),
NULL, ONE_DASH, &General_options::set_symbolic),
GENERAL_NOARG('\0', "detect-odr-violations",
N_("Try to detect violations of the One Definition Rule"),
NULL, TWO_DASHES, &General_options::set_detect_odr_violations),
GENERAL_NOARG('E', "export-dynamic", N_("Export all dynamic symbols"),
NULL, TWO_DASHES, &General_options::set_export_dynamic),
GENERAL_NOARG('\0', "eh-frame-hdr", N_("Create exception frame header"),
@@ -473,6 +476,7 @@ General_options::General_options()
is_relocatable_(false),
strip_(STRIP_NONE),
symbolic_(false),
detect_odr_violations_(false),
create_eh_frame_hdr_(false),
rpath_(),
rpath_link_(),