summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/gold/resolve.cc
diff options
context:
space:
mode:
authorRahul Chaudhry <rahulchaudhry@google.com>2016-06-29 16:57:53 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-06-29 16:57:53 +0000
commit129dec3ed0e1fc07f75a4322014d770cfd642f4d (patch)
tree641fb37846e0eb33ad84c003979bc5049d2b061f /binutils-2.25/gold/resolve.cc
parentfd48d3412ad6b8c1c84934e65cfea4f67213f79b (diff)
parent6422a80df992e4542dbd4fb70a04f316065674af (diff)
downloadtoolchain_binutils-129dec3ed0e1fc07f75a4322014d770cfd642f4d.zip
toolchain_binutils-129dec3ed0e1fc07f75a4322014d770cfd642f4d.tar.gz
toolchain_binutils-129dec3ed0e1fc07f75a4322014d770cfd642f4d.tar.bz2
Remove warning about references from shared objects to hidden symbols.
am: 6422a80df9 Change-Id: I50bdd1f0349dc9453014936904bc811a23ed7e32
Diffstat (limited to 'binutils-2.25/gold/resolve.cc')
-rw-r--r--binutils-2.25/gold/resolve.cc13
1 files changed, 4 insertions, 9 deletions
diff --git a/binutils-2.25/gold/resolve.cc b/binutils-2.25/gold/resolve.cc
index 07dff4a..b49c45c 100644
--- a/binutils-2.25/gold/resolve.cc
+++ b/binutils-2.25/gold/resolve.cc
@@ -279,15 +279,10 @@ Symbol_table::resolve(Sized_symbol<size>* to,
&& (to->visibility() == elfcpp::STV_HIDDEN
|| to->visibility() == elfcpp::STV_INTERNAL))
{
- // A dynamic object cannot reference a hidden or internal symbol
- // defined in another object.
- gold_warning(_("%s symbol '%s' in %s is referenced by DSO %s"),
- (to->visibility() == elfcpp::STV_HIDDEN
- ? "hidden"
- : "internal"),
- to->demangled_name().c_str(),
- to->object()->name().c_str(),
- object->name().c_str());
+ // The symbol is hidden, so a reference from a shared object
+ // cannot bind to it. We tried issuing a warning in this case,
+ // but that produces false positives when the symbol is
+ // actually resolved in a different shared object (PR 15574).
return;
}
else