diff options
author | Ian Lance Taylor <iant@google.com> | 2007-11-14 07:34:53 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-11-14 07:34:53 +0000 |
commit | e2827e5f525574e8620bd43c8bcb27dba3407a7f (patch) | |
tree | a72625b3bd98a7beb23dde4aad331598572564f3 /gold/options.h | |
parent | a55ce7febfaa52670ce3d9c236d3033de80ac091 (diff) | |
download | binutils-gdb-e2827e5f525574e8620bd43c8bcb27dba3407a7f.tar.gz |
Warn about undefined references in shared libraries if we have seen
all the DT_NEEDED entries for that library.
Diffstat (limited to 'gold/options.h')
-rw-r--r-- | gold/options.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h index c54af7781d2..b5d2328a1a6 100644 --- a/gold/options.h +++ b/gold/options.h @@ -148,6 +148,12 @@ class General_options strip_debug() const { return this->strip_ == STRIP_ALL || this->strip_ == STRIP_DEBUG; } + // --allow-shlib-undefined: do not warn about unresolved symbols in + // --shared libraries. + bool + allow_shlib_undefined() const + { return this->allow_shlib_undefined_; } + // -Bsymbolic: bind defined symbols locally. bool symbolic() const @@ -301,6 +307,14 @@ class General_options { this->strip_ = STRIP_DEBUG; } void + set_allow_shlib_undefined() + { this->allow_shlib_undefined_ = true; } + + void + set_no_allow_shlib_undefined() + { this->allow_shlib_undefined_ = false; } + + void set_symbolic() { this->symbolic_ = true; } @@ -420,6 +434,7 @@ class General_options const char* output_file_name_; bool is_relocatable_; Strip strip_; + bool allow_shlib_undefined_; bool symbolic_; bool detect_odr_violations_; bool create_eh_frame_hdr_; |