diff options
author | Ian Lance Taylor <ian@airs.com> | 2010-01-07 18:31:30 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2010-01-07 18:31:30 +0000 |
commit | dc3f80feec3ab89febde78bc6d11655431555365 (patch) | |
tree | 38969cf3bada06c432cebc60cb7af3f0f1ee3a06 /gold/options.h | |
parent | ffeef7dfa55fe9608a46a991ce5413fe0db844f4 (diff) | |
download | gdb-dc3f80feec3ab89febde78bc6d11655431555365.zip gdb-dc3f80feec3ab89febde78bc6d11655431555365.tar.gz gdb-dc3f80feec3ab89febde78bc6d11655431555365.tar.bz2 |
PR 10980
* options.h (class General_options): Add --warn-unresolved-symbols
and --error-unresolved-symbols.
* errors.cc (Errors::undefined_symbol): Implement
--warn-unresolved-symbols.
Diffstat (limited to 'gold/options.h')
-rw-r--r-- | gold/options.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h index de1f07a..b22060a 100644 --- a/gold/options.h +++ b/gold/options.h @@ -972,6 +972,14 @@ class General_options N_("Warn if text segment is not shareable"), N_("Do not warn if text segment is not shareable (default)")); + DEFINE_bool(warn_unresolved_symbols, options::TWO_DASHES, '\0', false, + N_("Report unresolved symbols as warnings"), + NULL); + DEFINE_bool_alias(error_unresolved_symbols, warn_unresolved_symbols, + options::TWO_DASHES, '\0', + N_("Report unresolved symbols as errors"), + NULL, true); + DEFINE_bool(whole_archive, options::TWO_DASHES, '\0', false, N_("Include all archive contents"), N_("Include only needed archive contents")); |