projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03e8f2b
)
From Cary Coutant: Ignore hidden symbols in a dynamic object.
author
Ian Lance Taylor
<iant@google.com>
Fri, 1 Feb 2008 00:42:24 +0000
(
00:42
+0000)
committer
Ian Lance Taylor
<iant@google.com>
Fri, 1 Feb 2008 00:42:24 +0000
(
00:42
+0000)
gold/symtab.cc
patch
|
blob
|
history
diff --git
a/gold/symtab.cc
b/gold/symtab.cc
index
c26cc22
..
78bfec5
100644
(file)
--- a/
gold/symtab.cc
+++ b/
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();