summaryrefslogtreecommitdiff
path: root/bfd/elf-m10300.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-08-24 13:14:46 +0000
committerAlexandre Oliva <aoliva@redhat.com>2001-08-24 13:14:46 +0000
commit779245cd32c749d7573b84e55e52a89fd7da5d8b (patch)
tree214cf35562c0ca39868af61d285f8cfd52222900 /bfd/elf-m10300.c
parent0e70dd05de69c8464480973281ecce7bf9b7229b (diff)
downloadgdb-779245cd32c749d7573b84e55e52a89fd7da5d8b.tar.gz
* elf-m10300.c (mn10300_elf_relocate_section): Test the right
`type' field in the hash entry when deciding whether to follow a link.
Diffstat (limited to 'bfd/elf-m10300.c')
-rw-r--r--bfd/elf-m10300.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf-m10300.c b/bfd/elf-m10300.c
index 15380bc64ad..8f94bbfb73d 100644
--- a/bfd/elf-m10300.c
+++ b/bfd/elf-m10300.c
@@ -599,8 +599,8 @@ mn10300_elf_relocate_section (output_bfd, info, input_bfd, input_section,
else
{
h = sym_hashes[r_symndx - symtab_hdr->sh_info];
- while (h->root.type == bfd_link_hash_indirect
- || h->root.type == bfd_link_hash_warning)
+ while (h->root.root.type == bfd_link_hash_indirect
+ || h->root.root.type == bfd_link_hash_warning)
h = (struct elf32_mn10300_link_hash_entry *) h->root.root.u.i.link;
if (h->root.root.type == bfd_link_hash_defined
|| h->root.root.type == bfd_link_hash_defweak)