diff options
author | Ian Lance Taylor <ian@airs.com> | 2010-01-06 05:30:24 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2010-01-06 05:30:24 +0000 |
commit | 62dfdd4d1c7c79e81318115d1da67d4cb2b2e6d1 (patch) | |
tree | 7a61965b9e5e13b174ba0bc012cc432488828ba0 /gold/script.h | |
parent | fe8afbc48fd3fba73600670fd2b0fcbfd45c440a (diff) | |
download | gdb-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/script.h')
-rw-r--r-- | gold/script.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gold/script.h b/gold/script.h index a7e0186..710afd0 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 { |