aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-11-14 07:34:53 +0000
committerIan Lance Taylor <iant@google.com>2007-11-14 07:34:53 +0000
commite2827e5f525574e8620bd43c8bcb27dba3407a7f (patch)
treea72625b3bd98a7beb23dde4aad331598572564f3 /gold/parameters.h
parentFrom Craig Silverstein: Rework debug info code a bit, add option for (diff)
downloadbinutils-gdb-e2827e5f525574e8620bd43c8bcb27dba3407a7f.tar.gz
binutils-gdb-e2827e5f525574e8620bd43c8bcb27dba3407a7f.tar.bz2
binutils-gdb-e2827e5f525574e8620bd43c8bcb27dba3407a7f.zip
Warn about undefined references in shared libraries if we have seen
all the DT_NEEDED entries for that library.
Diffstat (limited to 'gold/parameters.h')
-rw-r--r--gold/parameters.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gold/parameters.h b/gold/parameters.h
index 353f01f2ba8..ee60b10b4a0 100644
--- a/gold/parameters.h
+++ b/gold/parameters.h
@@ -112,6 +112,14 @@ class Parameters
return this->strip_ == STRIP_ALL || this->strip_ == STRIP_DEBUG;
}
+ // Whether to permit unresolved references from shared libraries.
+ bool
+ allow_shlib_undefined() const
+ {
+ gold_assert(this->options_valid_);
+ return this->allow_shlib_undefined_;
+ }
+
// Whether we are doing a symbolic link, in which all defined
// symbols are bound locally.
bool
@@ -224,6 +232,8 @@ class Parameters
std::string sysroot_;
// Which symbols to strip.
Strip strip_;
+ // Whether to allow undefined references from shared libraries.
+ bool allow_shlib_undefined_;
// Whether we are doing a symbolic link.
bool symbolic_;
// Whether we try to detect One Definition Rule violations.