From: iant Date: Fri, 1 Feb 2008 00:42:24 +0000 (+0000) Subject: From Cary Coutant: Ignore hidden symbols in a dynamic object. X-Git-Tag: EOL_registry_mounts~761 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d66d5a8d38ccdfd391d912a0574f1909f13e4eec;p=pf3gnuchains%2Fpf3gnuchains4x.git From Cary Coutant: Ignore hidden symbols in a dynamic object. --- diff --git a/gold/symtab.cc b/gold/symtab.cc index c26cc2271c..78bfec5a61 100644 --- a/gold/symtab.cc +++ b/gold/symtab.cc @@ -749,8 +749,11 @@ Symbol_table::add_from_dynobj( { elfcpp::Sym sym(p); - // Ignore symbols with local binding. - if (sym.get_st_bind() == elfcpp::STB_LOCAL) + // Ignore symbols with local binding or that have + // internal or hidden visibility. + if (sym.get_st_bind() == elfcpp::STB_LOCAL + || sym.get_st_visibility() == elfcpp::STV_INTERNAL + || sym.get_st_visibility() == elfcpp::STV_HIDDEN) continue; unsigned int st_name = sym.get_st_name();