]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix bug in previous delta
authorNick Clifton <nickc@redhat.com>
Mon, 13 Aug 2001 10:43:29 +0000 (10:43 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 13 Aug 2001 10:43:29 +0000 (10:43 +0000)
bfd/elf32-v850.c

index 0a5ccdf5976ec5adee1db4ef42641efc4fb103ad..5e89473a45ea45b9d56cfa7011a31b8c6b6a6b00 100644 (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;