aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-mmix.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-04-16 04:58:12 +0000
committerAlan Modra <amodra@gmail.com>2002-04-16 04:58:12 +0000
commit4ab827001997efd8ca410978f8770c51cad5e813 (patch)
treec5b31569e4ea5012f7bc3d4e987ce2a207564fb4 /bfd/elf64-mmix.c
parent76b999d0131e6a37bd3539686378c72878bef4ce (diff)
downloadgdb-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-mmix.c')
-rw-r--r--bfd/elf64-mmix.c14
1 files changed, 7 insertions, 7 deletions
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,