From 105b6afd921f7db737d25b712a439a3d388dbad1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Tue, 1 Jun 2010 19:17:43 +0000 Subject: [PATCH] 2010-06-01 Rafael Espindola * plugin.cc (Sized_pluginobj::::do_add_symbols): Correctly set the visibility of symbols. --- gold/ChangeLog | 5 +++++ gold/plugin.cc | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index ef47e8e..8e8493f 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 2ee1301..a7bdbb5 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: -- 2.7.4