* 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.
This commit is contained in:
Ian Lance Taylor
2010-01-06 05:30:24 +00:00
parent fe8afbc48f
commit 62dfdd4d1c
5 changed files with 116 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
// script.h -- handle linker scripts for gold -*- C++ -*-
// Copyright 2006, 2007, 2008 Free Software Foundation, Inc.
// Copyright 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
@@ -196,6 +196,11 @@ class Version_script_info
void
build_lookup_tables();
// Give an error if there are any unmatched names in the version
// script.
void
check_unmatched_names(const Symbol_table*) const;
// Print contents to the FILE. This is for debugging.
void
print(FILE*) const;
@@ -209,6 +214,9 @@ class Version_script_info
bool check_global,
std::string* pversion) const;
void
matched_symbol(const Version_tree*, const char*) const;
// Fast lookup information for a glob pattern.
struct Glob
{