aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-x86-64.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-09-28 12:54:53 +0000
committerAlan Modra <amodra@gmail.com>2001-09-28 12:54:53 +0000
commitffaef1591165fef922024fdcbc8c1571bf58540a (patch)
tree1338ca09ab30f78f92d59bf74273504ae193424b /bfd/elf64-x86-64.c
parent674f90ff34399721703ecfee019c6226d621c6c8 (diff)
downloadgdb-ffaef1591165fef922024fdcbc8c1571bf58540a.zip
gdb-ffaef1591165fef922024fdcbc8c1571bf58540a.tar.gz
gdb-ffaef1591165fef922024fdcbc8c1571bf58540a.tar.bz2
* elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
reloc code using x86_64_reloc_map.
Diffstat (limited to 'bfd/elf64-x86-64.c')
-rw-r--r--bfd/elf64-x86-64.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 0359b16..decd987 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -167,8 +167,7 @@ elf64_x86_64_reloc_type_lookup (abfd, code)
i++)
{
if (x86_64_reloc_map[i].bfd_reloc_val == code)
- return &x86_64_elf_howto_table[(int)
- x86_64_reloc_map[i].elf_reloc_val];
+ return &x86_64_elf_howto_table[i];
}
return 0;
}