diff options
author | Ian Lance Taylor <ian@airs.com> | 2009-11-04 01:24:41 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2009-11-04 01:24:41 +0000 |
commit | 1ae4d23b731a2a5fa5d688bc255d52e7f1eb9232 (patch) | |
tree | f35dae3b6a4203d8c2cc52a25d3f23c5188db707 /gold/symtab.h | |
parent | 690a96ed8ce0d2256eec357a187252a0974241af (diff) | |
download | binutils-1ae4d23b731a2a5fa5d688bc255d52e7f1eb9232.zip binutils-1ae4d23b731a2a5fa5d688bc255d52e7f1eb9232.tar.gz binutils-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/symtab.h')
-rw-r--r-- | gold/symtab.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/symtab.h b/gold/symtab.h index d1cd647..544712d 100644 --- a/gold/symtab.h +++ b/gold/symtab.h @@ -1488,6 +1488,11 @@ class Symbol_table static bool should_override(const Symbol*, unsigned int, Object*, bool*); + // Report a problem in symbol resolution. + static void + report_resolve_problem(bool is_error, const char* msg, const Symbol* to, + Object* object); + // Override a symbol. template<int size, bool big_endian> void |