From: Rafael Ávila de Espíndola Date: Tue, 1 Jun 2010 19:17:43 +0000 (+0000) Subject: 2010-06-01 Rafael Espindola X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=105b6afd921f7db737d25b712a439a3d388dbad1;p=binutils-gdb.git 2010-06-01 Rafael Espindola * plugin.cc (Sized_pluginobj::::do_add_symbols): Correctly set the visibility of symbols. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index ef47e8ea2b1..8e8493f0a45 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2010-06-01 Rafael Espindola + + * plugin.cc (Sized_pluginobj::::do_add_symbols): Correctly set the + visibility of symbols. + 2010-05-27 Doug Kwan * object.cc (Sized_relobj::do_finalize_local_symbols): Use offset diff --git a/gold/plugin.cc b/gold/plugin.cc index 2ee1301a537..a7bdbb53802 100644 --- a/gold/plugin.cc +++ b/gold/plugin.cc @@ -647,13 +647,13 @@ Sized_pluginobj::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: