This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]