aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-07-11 17:40:25 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-07-11 17:40:25 +0000
commit49ff44d641129035693e0b91a829d343606a6237 (patch)
tree9f3933d8d02c54f8c9447279da8ec41dc364606a /bfd/elflink.c
parentbb780410601ebd28ab75267e4d762c82bbd1c92a (diff)
downloadgdb-49ff44d641129035693e0b91a829d343606a6237.zip
gdb-49ff44d641129035693e0b91a829d343606a6237.tar.gz
gdb-49ff44d641129035693e0b91a829d343606a6237.tar.bz2
2005-07-11 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (_bfd_elf_symbol_refs_local_p): Revert the last change.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 4fac5ae..6177f53 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -2572,10 +2572,8 @@ _bfd_elf_symbol_refs_local_p (struct elf_link_hash_entry *h,
if (ELF_COMMON_DEF_P (h))
/* Do nothing. */;
/* If we don't have a definition in a regular file, then we can't
- resolve locally unless it has non-default visibility . The sym
- is either undefined or dynamic. */
- else if (!h->def_regular
- && ELF_ST_VISIBILITY (h->other) == STV_DEFAULT)
+ resolve locally. The sym is either undefined or dynamic. */
+ else if (!h->def_regular)
return FALSE;
/* Forced local symbols resolve locally. */