aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2011-07-09 06:11:34 +0000
committerIan Lance Taylor <ian@airs.com>2011-07-09 06:11:34 +0000
commitbeabb2c68ff9e09a1141cafd6f0b11ed98343290 (patch)
tree6a693410c82ed8e6edc622066771b6c1a380fa8e /gold/options.h
parent9c16daf1fcf87c2d75dea6775586135685237b4d (diff)
downloadgdb-beabb2c68ff9e09a1141cafd6f0b11ed98343290.zip
gdb-beabb2c68ff9e09a1141cafd6f0b11ed98343290.tar.gz
gdb-beabb2c68ff9e09a1141cafd6f0b11ed98343290.tar.bz2
PR gold/12386
* options.h (class General_options): Add --unresolved-symbols. * target-reloc.h (issue_undefined_symbol_error): Check --unresolved-symbols. Add comments.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index 230900a..817d0f0 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -1069,6 +1069,13 @@ class General_options
DEFINE_set(undefined, options::TWO_DASHES, 'u',
N_("Create undefined reference to SYMBOL"), N_("SYMBOL"));
+ DEFINE_enum(unresolved_symbols, options::TWO_DASHES, '\0', NULL,
+ N_("How to handle unresolved symbols"),
+ ("ignore-all,report-all,ignore-in-object-files,"
+ "ignore-in-shared-libs"),
+ {"ignore-all", "report-all", "ignore-in-object-files",
+ "ignore-in-shared-libs"});
+
DEFINE_bool(verbose, options::TWO_DASHES, '\0', false,
N_("Synonym for --debug=files"), NULL);