projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa645ac
)
Fix bug in previous delta
author
Nick Clifton
<nickc@redhat.com>
Mon, 13 Aug 2001 10:43:29 +0000
(10:43 +0000)
committer
Nick Clifton
<nickc@redhat.com>
Mon, 13 Aug 2001 10:43:29 +0000
(10:43 +0000)
bfd/elf32-v850.c
patch
|
blob
|
history
diff --git
a/bfd/elf32-v850.c
b/bfd/elf32-v850.c
index 0a5ccdf5976ec5adee1db4ef42641efc4fb103ad..5e89473a45ea45b9d56cfa7011a31b8c6b6a6b00 100644
(file)
--- 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;