summaryrefslogtreecommitdiff
path: root/gold/script.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/script.h
parentfe8afbc48fd3fba73600670fd2b0fcbfd45c440a (diff)
downloadbinutils-gdb-62dfdd4d1c7c79e81318115d1da67d4cb2b2e6d1.tar.gz
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/script.h')
-rw-r--r--gold/script.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gold/script.h b/gold/script.h
index a7e0186bde4..710afd0eea5 100644
--- a/gold/script.h
+++ b/gold/script.h
@@ -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
{