This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Fix x86_64 vtable testsuite failures
- To: binutils at sourceware dot cygnus dot com
- Subject: Fix x86_64 vtable testsuite failures
- From: Alan Modra <amodra at bigpond dot net dot au>
- Date: Fri, 28 Sep 2001 22:28:11 +0930
I was getting
FAIL: vtable inherit0
FAIL: vtable entry1
Committed to mainline.
* elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
reloc code using x86_64_reloc_map.
--
Alan Modra
Index: bfd/elf64-x86-64.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-x86-64.c,v
retrieving revision 1.27
diff -u -p -r1.27 elf64-x86-64.c
--- elf64-x86-64.c 2001/09/24 01:38:31 1.27
+++ elf64-x86-64.c 2001/09/28 12:35:19
@@ -167,8 +167,7 @@ elf64_x86_64_reloc_type_lookup (abfd, co
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;
}