2010-06-01 Rafael Espindola <espindola@google.com>
authorRafael Ávila de Espíndola <respindola@mozilla.com>
Tue, 1 Jun 2010 19:17:43 +0000 (19:17 +0000)
committerRafael Ávila de Espíndola <respindola@mozilla.com>
Tue, 1 Jun 2010 19:17:43 +0000 (19:17 +0000)
* plugin.cc (Sized_pluginobj::::do_add_symbols): Correctly set the
visibility of symbols.

gold/ChangeLog
gold/plugin.cc

index ef47e8ea2b1befcbd7f643726749f134f62b0b36..8e8493f0a4500d000d3dd8537a554de0d9ae355f 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-01  Rafael Espindola  <espindola@google.com>
+
+       * plugin.cc (Sized_pluginobj::::do_add_symbols): Correctly set the
+       visibility of symbols.
+
 2010-05-27  Doug Kwan  <dougkwan@google.com>
 
        * object.cc (Sized_relobj::do_finalize_local_symbols): Use offset
index 2ee1301a537a735ddf0eab525210d4435c92c2e7..a7bdbb53802e3640dfcd826611499c54a3feebd5 100644 (file)
@@ -647,13 +647,13 @@ Sized_pluginobj<size, big_endian>::do_add_symbols(Symbol_table* symtab,
       switch (isym->visibility)
         {
         case LDPV_PROTECTED:
-          vis = elfcpp::STV_DEFAULT;
+          vis = elfcpp::STV_PROTECTED;
           break;
         case LDPV_INTERNAL:
-          vis = elfcpp::STV_DEFAULT;
+          vis = elfcpp::STV_INTERNAL;
           break;
         case LDPV_HIDDEN:
-          vis = elfcpp::STV_DEFAULT;
+          vis = elfcpp::STV_HIDDEN;
           break;
         case LDPV_DEFAULT:
         default: