* 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.
This commit is contained in:
Alan Modra
2002-04-16 04:58:12 +00:00
parent 76b999d013
commit 4ab8270019
6 changed files with 26 additions and 14 deletions

View File

@@ -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;