mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 02:20:51 +00:00
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.
This commit is contained in:
@@ -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"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user