From 4ab827001997efd8ca410978f8770c51cad5e813 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 16 Apr 2002 04:58:12 +0000 Subject: * 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. --- bfd/elf64-mmix.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bfd/elf64-mmix.c') diff --git a/bfd/elf64-mmix.c b/bfd/elf64-mmix.c index 3bda435..96146ed 100644 --- a/bfd/elf64-mmix.c +++ b/bfd/elf64-mmix.c @@ -1953,16 +1953,16 @@ mmix_elf_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp) strlen (MMIX_LOC_SECTION_START_SYMBOL_PREFIX)) == 0) { /* See if we have another one. */ - struct elf_link_hash_entry *h - = (struct elf_link_hash_entry *) bfd_link_hash_lookup (info->hash, - *namep, - false, - false, false); + struct bfd_link_hash_entry *h = bfd_link_hash_lookup (info->hash, + *namep, + false, + false, + false); - if (h != NULL && h->root.type != bfd_link_hash_undefined) + if (h != NULL && h->type != bfd_link_hash_undefined) { /* How do we get the asymbol (or really: the filename) from h? - h->root.u.def.section->owner is NULL. */ + h->u.def.section->owner is NULL. */ ((*_bfd_error_handler) (_("%s: Error: multiple definition of `%s'; start of %s is set in a earlier linked file\n"), bfd_get_filename (abfd), *namep, -- cgit v1.1