Fix bug in previous delta

This commit is contained in:
Nick Clifton 2001-08-13 10:43:29 +00:00
parent fa645acb92
commit fbad9a25db
1 changed files with 4 additions and 2 deletions

View File

@ -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;