diff options
author | Alan Modra <amodra@gmail.com> | 2002-04-16 04:58:12 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-04-16 04:58:12 +0000 |
commit | 4ab827001997efd8ca410978f8770c51cad5e813 (patch) | |
tree | c5b31569e4ea5012f7bc3d4e987ce2a207564fb4 /bfd/elf64-sh64.c | |
parent | 76b999d0131e6a37bd3539686378c72878bef4ce (diff) | |
download | gdb-4ab827001997efd8ca410978f8770c51cad5e813.zip gdb-4ab827001997efd8ca410978f8770c51cad5e813.tar.gz gdb-4ab827001997efd8ca410978f8770c51cad5e813.tar.bz2 |
* elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
type rather than just assuming entries are ELF.
* elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
* elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
* elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
* elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
rather than elf_link_hash_entry.
Diffstat (limited to 'bfd/elf64-sh64.c')
-rw-r--r-- | bfd/elf64-sh64.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf64-sh64.c b/bfd/elf64-sh64.c index aac491a..b168934 100644 --- a/bfd/elf64-sh64.c +++ b/bfd/elf64-sh64.c @@ -2929,7 +2929,8 @@ sh64_elf64_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp) bfd_vma *valp; { /* We want to do this for relocatable as well as final linking. */ - if (ELF_ST_TYPE (sym->st_info) == STT_DATALABEL) + if (ELF_ST_TYPE (sym->st_info) == STT_DATALABEL + && info->hash->creator->flavour == bfd_target_elf_flavour) { struct elf_link_hash_entry *h; |