This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Applied patch to fix mips elf64 assertion failures
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: 20 Aug 2003 15:03:45 +0100
- Subject: Applied patch to fix mips elf64 assertion failures
Using elf64-mips.c, information gathered from relocs against indirect
symbols wasn't being copied to the real symbol's hash table. Test cases like:
.dword abort
would then cause an assertion failure for mips64-linux-gnu.
The reason was that elf64-mips.c (unlike elf32-mips.c and elfn32-mips.c)
wasn't using _bfd_mips_elf_copy_indirect_symbol.
Tested on mips64-linux-gnu, installed as obvious.
Richard
* elf64-mips.c (elf_backend_copy_indirect_symbol): Define.
Index: bfd/elf64-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-mips.c,v
retrieving revision 1.52
diff -u -d -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.52 elf64-mips.c
--- bfd/elf64-mips.c 7 Aug 2003 08:38:08 -0000 1.52
+++ bfd/elf64-mips.c 16 Aug 2003 18:56:29 -0000
@@ -2899,6 +2899,8 @@ #define elf_backend_additional_program_h
#define elf_backend_modify_segment_map _bfd_mips_elf_modify_segment_map
#define elf_backend_gc_mark_hook _bfd_mips_elf_gc_mark_hook
#define elf_backend_gc_sweep_hook _bfd_mips_elf_gc_sweep_hook
+#define elf_backend_copy_indirect_symbol \
+ _bfd_mips_elf_copy_indirect_symbol
#define elf_backend_hide_symbol _bfd_mips_elf_hide_symbol
#define elf_backend_ignore_discarded_relocs \
_bfd_mips_elf_ignore_discarded_relocs