aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-11-04 01:24:41 +0000
committerIan Lance Taylor <ian@airs.com>2009-11-04 01:24:41 +0000
commit1ae4d23b731a2a5fa5d688bc255d52e7f1eb9232 (patch)
treef35dae3b6a4203d8c2cc52a25d3f23c5188db707 /gold/options.h
parent690a96ed8ce0d2256eec357a187252a0974241af (diff)
downloadgdb-1ae4d23b731a2a5fa5d688bc255d52e7f1eb9232.zip
gdb-1ae4d23b731a2a5fa5d688bc255d52e7f1eb9232.tar.gz
gdb-1ae4d23b731a2a5fa5d688bc255d52e7f1eb9232.tar.bz2
PR 10860
* options.h (class General_options): Add --warn-common. * resolve.cc (Symbol_table::resolve): Handle --warn-common when merging two common symbols. (Symbol_table::should_override): Handle --warn-common when merging a common symbol with a defined symbol. Use report_resolve_problem for multiple definitions. (Symbol_table::report_resolve_problem): New function. * symtab.h (class Symbol_table): Declare report_resolve_problem.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index c1d5329..399c301 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -918,6 +918,10 @@ class General_options
DEFINE_special(version_script, options::TWO_DASHES, '\0',
N_("Read version script"), N_("FILE"));
+ DEFINE_bool(warn_common, options::TWO_DASHES, '\0', false,
+ N_("Warn about duplicate common symbols"),
+ N_("Do not warn about duplicate common symbols (default)"));
+
DEFINE_bool(warn_constructors, options::TWO_DASHES, '\0', false,
N_("Ignored"), N_("Ignored"));