summaryrefslogtreecommitdiff
path: root/bfd/elf64-sparc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-04-16 04:58:12 +0000
committerAlan Modra <amodra@bigpond.net.au>2002-04-16 04:58:12 +0000
commit9335b9683eee2da511dcd6ceedcabf21ae516047 (patch)
treedb5bf7e50689824e6b5dca99bc54cfa672af1fc3 /bfd/elf64-sparc.c
parentac278f7f44fb06b84667227f9d73a0246e032941 (diff)
downloadbinutils-redhat-9335b9683eee2da511dcd6ceedcabf21ae516047.tar.gz
* 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-sparc.c')
-rw-r--r--bfd/elf64-sparc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/elf64-sparc.c b/bfd/elf64-sparc.c
index 8df7e31952..4933f8de80 100644
--- a/bfd/elf64-sparc.c
+++ b/bfd/elf64-sparc.c
@@ -1385,9 +1385,8 @@ sparc64_elf_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp)
*namep = NULL;
return true;
}
- else if (! *namep || ! **namep)
- return true;
- else
+ else if (*namep && **namep
+ && info->hash->creator->flavour == bfd_target_elf_flavour)
{
int i;
struct sparc64_elf_app_reg *p;