aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-01-06 05:30:24 +0000
committerIan Lance Taylor <ian@airs.com>2010-01-06 05:30:24 +0000
commit62dfdd4d1c7c79e81318115d1da67d4cb2b2e6d1 (patch)
tree7a61965b9e5e13b174ba0bc012cc432488828ba0 /gold/options.h
parentfe8afbc48fd3fba73600670fd2b0fcbfd45c440a (diff)
downloadgdb-62dfdd4d1c7c79e81318115d1da67d4cb2b2e6d1.zip
gdb-62dfdd4d1c7c79e81318115d1da67d4cb2b2e6d1.tar.gz
gdb-62dfdd4d1c7c79e81318115d1da67d4cb2b2e6d1.tar.bz2
PR 10980
* options.h (class General_options): Add --undefined-version. * script.cc (struct Version_expression): Add was_matched_by_symbol field. (Version_script_info::matched_symbol): New function. (Version_script_info::get_symbol_version_helper): Call matched_symbol. (Version_script_info::check_unmatched_names): New function. * script.h (class Version_script_info): Update declarations. * gold.cc (queue_middle_tasks): Handle --no-undefined-version.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index 85c81e4..817cac7 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -971,6 +971,10 @@ class General_options
DEFINE_set(trace_symbol, options::TWO_DASHES, 'y',
N_("Trace references to symbol"), N_("SYMBOL"));
+ DEFINE_bool(undefined_version, options::TWO_DASHES, '\0', true,
+ N_("Allow unused version in script (default)"),
+ N_("Do not allow unused version in script"));
+
DEFINE_string(Y, options::EXACTLY_ONE_DASH, 'Y', "",
N_("Default search path for Solaris compatibility"),
N_("PATH"));