diff options
author | Nick Clifton <nickc@redhat.com> | 2001-08-13 10:43:29 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-08-13 10:43:29 +0000 |
commit | fbad9a25dbf090074a4efa848f7ca097b0382ef9 (patch) | |
tree | 4c462e376ce3443d7b187ea1f7b05460dee2387d | |
parent | fa645acb92f43eeaca68f78175db985cfaa29da1 (diff) | |
download | gdb-fbad9a25dbf090074a4efa848f7ca097b0382ef9.zip gdb-fbad9a25dbf090074a4efa848f7ca097b0382ef9.tar.gz gdb-fbad9a25dbf090074a4efa848f7ca097b0382ef9.tar.bz2 |
Fix bug in previous delta
-rw-r--r-- | bfd/elf32-v850.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/elf32-v850.c b/bfd/elf32-v850.c index 0a5ccdf..5e89473 100644 --- a/bfd/elf32-v850.c +++ b/bfd/elf32-v850.c @@ -523,9 +523,11 @@ v850_elf_reloc_type_lookup (abfd, code) for (i = ARRAY_SIZE (v850_elf_reloc_map); i --;) if (v850_elf_reloc_map[i].bfd_reloc_val == code) { - BFD_ASSERT (v850_elf_howto_table[code].type == v850_elf_reloc_map[i].elf_reloc_val); + int elf_reloc_val = v850_elf_reloc_map[i].elf_reloc_val; + + BFD_ASSERT (v850_elf_howto_table[elf_reloc_val].type == elf_reloc_val); - return v850_elf_howto_table + code; + return v850_elf_howto_table + elf_reloc_val; } return NULL; |