From: H.J. Lu Date: Wed, 31 Oct 2001 16:42:48 +0000 (+0000) Subject: 2001-10-31 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2cd533b7690e09f4b17795e24b2652e61538a0a8;p=binutils-gdb.git 2001-10-31 H.J. Lu * elflink.h (elf_link_output_extsym): Don't clear the visibility field for relocateable. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 364305df2be..9c5fac19d0f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2001-10-31 H.J. Lu + + * elflink.h (elf_link_output_extsym): Don't clear the visibility + field for relocateable. + 2001-11-01 Alan Modra * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Don't count diff --git a/bfd/elflink.h b/bfd/elflink.h index fd251b06f37..4c7f0bbb3d4 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -5696,7 +5696,8 @@ elf_link_output_extsym (h, data) /* If a symbol is not defined locally, we clear the visibility field. */ - if ((h->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR) == 0) + if (! finfo->info->relocateable + && (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR) == 0) sym.st_other ^= ELF_ST_VISIBILITY (sym.st_other); /* If this symbol should be put in the .dynsym section, then put it