From dd4d4a7f75cd185f49adc227dea31146df5e0b0d Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 11 Jul 2005 17:40:25 +0000 Subject: [PATCH] 2005-07-11 H.J. Lu * elflink.c (_bfd_elf_symbol_refs_local_p): Revert the last change. --- bfd/ChangeLog | 5 +++++ bfd/elflink.c | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index cb029c64aa..a907b4c6db 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-07-11 H.J. Lu + + * elflink.c (_bfd_elf_symbol_refs_local_p): Revert the last + change. + 2005-07-08 Paul Koning * dwarf2.c (read_address): Check sign_extend_vma to handle targets diff --git a/bfd/elflink.c b/bfd/elflink.c index 4fac5ae7ca..6177f5324e 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. */ -- 2.11.0