From e2827e5f525574e8620bd43c8bcb27dba3407a7f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 14 Nov 2007 07:34:53 +0000 Subject: Warn about undefined references in shared libraries if we have seen all the DT_NEEDED entries for that library. --- gold/parameters.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gold/parameters.h') 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. -- cgit v1.2.1