mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 11:01:35 +08:00
PR 10980
* options.h (class General_options): Add --allow-multiple-definition and -z muldefs. * resolve.cc (Symbol_table::should_override): Don't warn about a multiple symbol definition if --allow-multiple-definition or -z muldefs.
This commit is contained in:
@ -440,9 +440,11 @@ Symbol_table::should_override(const Symbol* to, unsigned int frombits,
|
||||
|| (object != NULL && object->just_symbols()))
|
||||
return false;
|
||||
|
||||
Symbol_table::report_resolve_problem(true,
|
||||
_("multiple definition of '%s'"),
|
||||
to, defined, object);
|
||||
if (!parameters->options().allow_multiple_definition()
|
||||
&& !parameters->options().muldefs())
|
||||
Symbol_table::report_resolve_problem(true,
|
||||
_("multiple definition of '%s'"),
|
||||
to, defined, object);
|
||||
return false;
|
||||
|
||||
case WEAK_DEF * 16 + DEF:
|
||||
|
Reference in New Issue
Block a user