* elf-m10300.c (mn10300_elf_relocate_section): Test the right
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 24 Aug 2001 13:14:46 +0000 (13:14 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Fri, 24 Aug 2001 13:14:46 +0000 (13:14 +0000)
`type' field in the hash entry when deciding whether to follow a
link.

bfd/ChangeLog
bfd/elf-m10300.c

index 70ef3cfbee748aaddf3ac90d1ac403f23b43d8ba..5160843debe685b6e41991e7d4939342c3960491 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
+
+       * elf-m10300.c (mn10300_elf_relocate_section): Test the right
+       `type' field in the hash entry when deciding whether to follow a
+       link.
+
 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
 
        * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
index 15380bc64ad0902bca199b40c519913e7a9111bd..8f94bbfb73d1d861cc4e42e2fee288579524e58b 100644 (file)
@@ -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)