aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-hppa.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2000-05-23 14:05:50 +0000
committerH.J. Lu <hjl.tools@gmail.com>2000-05-23 14:05:50 +0000
commit3a27a730c73e9ad0383ed15eb17d542169d80cdb (patch)
treea1122e8af7d6bd0b7a7f73ffac2351045aed7def /bfd/elf-hppa.h
parent781c552e2dc80dc5f785e107ca0cb656bc66a2a0 (diff)
downloadgdb-3a27a730c73e9ad0383ed15eb17d542169d80cdb.zip
gdb-3a27a730c73e9ad0383ed15eb17d542169d80cdb.tar.gz
gdb-3a27a730c73e9ad0383ed15eb17d542169d80cdb.tar.bz2
2000-05-23 H.J. Lu <hjl@gnu.org>
* elf32-i386.c (elf_i386_relocate_section): Don't allow the undefined symbol with the non-default visibility attributes. * elf-hppa.h (elf_hppa_relocate_section): Likewise. * elf32-arm.h (elf32_arm_relocate_section): Likewise. * elf32-i370.c (i370_elf_relocate_section): Likewise. * elf32-m68k.c (elf_m68k_relocate_section): Likewise. * elf32-mcore.c (mcore_elf_relocate_section): Likewise. * elf32-mips.c (mips_elf_calculate_relocation): Likewise. * elf32-ppc.c (ppc_elf_relocate_section): Likewise. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. * elf64-ia64.c (elf64_ia64_relocate_section): Likewise. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
Diffstat (limited to 'bfd/elf-hppa.h')
-rw-r--r--bfd/elf-hppa.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h
index e30f714..dab039b 100644
--- a/bfd/elf-hppa.h
+++ b/bfd/elf-hppa.h
@@ -1341,7 +1341,8 @@ elf_hppa_relocate_section (output_bfd, info, input_bfd, input_section,
relocation = 0;
}
/* Allow undefined symbols in shared libraries. */
- else if (info->shared && !info->no_undefined)
+ else if (info->shared && !info->no_undefined
+ && ELF_ST_VISIBILITY (h->other) == STV_DEFAULT)
{
if (info->symbolic)
(*info->callbacks->undefined_symbol)