diff options
author | Kris Van Hees <kris.van.hees@oracle.com> | 2008-08-28 14:51:04 +0000 |
---|---|---|
committer | Kris Van Hees <kris.van.hees@oracle.com> | 2008-08-28 14:51:04 +0000 |
commit | d7ab2a4705e7ca4df87807aaa6c89810ae559034 (patch) | |
tree | 37b67cd32a57d10ee87d1e897e66c54431baf554 /gold/options.cc | |
parent | 1ca35711f453e9a18d2a23795fc4305ace8eb1d4 (diff) | |
download | gdb-d7ab2a4705e7ca4df87807aaa6c89810ae559034.zip gdb-d7ab2a4705e7ca4df87807aaa6c89810ae559034.tar.gz gdb-d7ab2a4705e7ca4df87807aaa6c89810ae559034.tar.bz2 |
2008-08-28 Kris Van Hees <kris.van.hees@oracle.com>
PR gold/6858
* options.cc (General_options::finalize): Allow undefined symbols
in shlibs if linking -shared.
PR gold/6859
* symtab.cc (Symbol::init_base_undefined): Mark explicitly undefined
symbols as not needing a dynsym entry.
Diffstat (limited to 'gold/options.cc')
-rw-r--r-- | gold/options.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/options.cc b/gold/options.cc index 9b0cebf..78f0b1a 100644 --- a/gold/options.cc +++ b/gold/options.cc @@ -764,6 +764,9 @@ General_options::finalize() this->add_to_library_path_with_sysroot("/usr/lib"); } + if (this->shared() && !this->user_set_allow_shlib_undefined()) + this->set_allow_shlib_undefined(true); + // Normalize library_path() by adding the sysroot to all directories // in the path, as appropriate. this->add_sysroot(); |