summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/gold/resolve.cc
diff options
context:
space:
mode:
authorRahul Chaudhry <rahulchaudhry@google.com>2016-06-29 17:08:21 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-06-29 17:08:21 +0000
commit2ef2302e320ab8d4bfd1c0e0318a5ef6cd5f81f6 (patch)
tree641fb37846e0eb33ad84c003979bc5049d2b061f /binutils-2.25/gold/resolve.cc
parentab16853a21a8f41cdd4be68ff6bca140049681ea (diff)
parent1e1ca302a342a4966c5520704a1d003e1c4c7767 (diff)
downloadtoolchain_binutils-2ef2302e320ab8d4bfd1c0e0318a5ef6cd5f81f6.tar.gz
toolchain_binutils-2ef2302e320ab8d4bfd1c0e0318a5ef6cd5f81f6.tar.bz2
toolchain_binutils-2ef2302e320ab8d4bfd1c0e0318a5ef6cd5f81f6.zip
Remove warning about references from shared objects to hidden symbols. am: 6422a80df9 am: 129dec3ed0
am: 1e1ca302a3 Change-Id: Idf18161ad90ebdea222a95cead1af04fb7f9bc18
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 07dff4ad..b49c45c2 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