From 62dfdd4d1c7c79e81318115d1da67d4cb2b2e6d1 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 6 Jan 2010 05:30:24 +0000 Subject: 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. --- gold/options.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gold/options.h') 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")); -- cgit v1.1