aboutsummaryrefslogtreecommitdiff
path: root/bfd
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
commit17ea634937fc598b248628b5e533323a6a9f4d82 (patch)
tree352f1dd78cfdefdce69640be09efaa061c0876b0 /bfd
parentceacb162a14f40800cdee3f2ed485b7c4dbd594f (diff)
downloadgdb-17ea634937fc598b248628b5e533323a6a9f4d82.zip
gdb-17ea634937fc598b248628b5e533323a6a9f4d82.tar.gz
gdb-17ea634937fc598b248628b5e533323a6a9f4d82.tar.bz2
* 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')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf-m10300.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 70ef3cf..5160843 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elf-m10300.c b/bfd/elf-m10300.c
index 15380bc..8f94bbf 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)