Browse Source

From Cary Coutant: Ignore hidden symbols in a dynamic object.

insight_6_8-branch
Ian Lance Taylor 19 years ago
parent
commit
65778909ad
  1. 7
      gold/symtab.cc

7
gold/symtab.cc

@ -749,8 +749,11 @@ Symbol_table::add_from_dynobj(
{
elfcpp::Sym<size, big_endian> 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();

Loading…
Cancel
Save