Blame SOURCES/binutils-2.25.1-gold-resolving-to-hidden-symbols.patch

d9d3dc
--- binutils.orig/gold/resolve.cc	2017-01-16 13:36:00.782976888 +0000
d9d3dc
+++ binutils-2.25.1/gold/resolve.cc	2017-01-16 13:36:25.438655203 +0000
d9d3dc
@@ -279,15 +279,10 @@ Symbol_table::resolve(Sized_symbol<size>
d9d3dc
            && (to->visibility() == elfcpp::STV_HIDDEN
d9d3dc
                || to->visibility() == elfcpp::STV_INTERNAL))
d9d3dc
     {
d9d3dc
-      // A dynamic object cannot reference a hidden or internal symbol
d9d3dc
-      // defined in another object.
d9d3dc
-      gold_warning(_("%s symbol '%s' in %s is referenced by DSO %s"),
d9d3dc
-                   (to->visibility() == elfcpp::STV_HIDDEN
d9d3dc
-                    ? "hidden"
d9d3dc
-                    : "internal"),
d9d3dc
-                   to->demangled_name().c_str(),
d9d3dc
-                   to->object()->name().c_str(),
d9d3dc
-                   object->name().c_str());
d9d3dc
+      // The symbol is hidden, so a reference from a shared object
d9d3dc
+      // cannot bind to it.  We tried issuing a warning in this case,
d9d3dc
+      // but that produces false positives when the symbol is
d9d3dc
+      // actually resolved in a different shared object (PR 15574).
d9d3dc
       return;
d9d3dc
     }
d9d3dc
   else