diff options
author | Alan Modra <amodra@gmail.com> | 2003-05-17 06:16:03 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-05-17 06:16:03 +0000 |
commit | 9c7a29a32e738b51793f7f2bcaa4b403373b478c (patch) | |
tree | a925e4ef543194e6e886f4cb4ba54819d59cb067 /bfd/elflink.h | |
parent | b8b527c5a96aec839f5c8122ffd08556f7fe0d9f (diff) | |
download | gdb-9c7a29a32e738b51793f7f2bcaa4b403373b478c.zip gdb-9c7a29a32e738b51793f7f2bcaa4b403373b478c.tar.gz gdb-9c7a29a32e738b51793f7f2bcaa4b403373b478c.tar.bz2 |
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL
to trim plt entries. Move undefweak non-default visibility test..
(allocate_dynrelocs): ..from here.
* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't test
dynamic_sections_created here. Update comment. Move undefweak
non-default visibility test..
(allocate_dynrelocs): ..from here. Fix comment.
* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL
to trim plt entries. Move undefweak non-default visibility test..
(allocate_dynrelocs): ..from here. Fix comment.
* elflink.h (elf_link_output_extsym): Compare ELF_ST_VISIBILITY with
STV_DEFAULT rather than comparing with zero.
* elflink.c (_bfd_elf_merge_symbol): Likewise.
(_bfd_elf_fix_symbol_flags): Likewise. Format comment.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r-- | bfd/elflink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h index c9618b4..ab8c7de 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -4620,7 +4620,7 @@ elf_link_output_extsym (h, data) /* If a non-weak symbol with non-default visibility is not defined locally, it is a fatal error. */ if (! finfo->info->relocateable - && ELF_ST_VISIBILITY (sym.st_other) + && ELF_ST_VISIBILITY (sym.st_other) != STV_DEFAULT && ELF_ST_BIND (sym.st_info) != STB_WEAK && h->root.type != bfd_link_hash_undefweak && (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR) == 0) |