aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-01-07 18:31:30 +0000
committerIan Lance Taylor <ian@airs.com>2010-01-07 18:31:30 +0000
commitdc3f80feec3ab89febde78bc6d11655431555365 (patch)
tree38969cf3bada06c432cebc60cb7af3f0f1ee3a06 /gold/options.h
parentffeef7dfa55fe9608a46a991ce5413fe0db844f4 (diff)
downloadgdb-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.h8
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"));