From: Maciej W. Rozycki Date: Sat, 19 May 2012 19:13:56 +0000 (+0000) Subject: * elf64-mips.c (mips_elf64_be_swap_reloc_out): Also make sure X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0189df0335494087465543e963d58eb30307569;p=binutils-gdb.git * elf64-mips.c (mips_elf64_be_swap_reloc_out): Also make sure the third reloc offset is the same as the first. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index aee1dbc7831..60e3fb95157 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2012-05-19 Maciej W. Rozycki + + * elf64-mips.c (mips_elf64_be_swap_reloc_out): Also make sure + the third reloc offset is the same as the first. + 2012-05-19 Alan Modra * elf32-ppc.h (has_vle_insns, is_ppc_vle): Delete. diff --git a/bfd/elf64-mips.c b/bfd/elf64-mips.c index a835f66e62d..054b262dc4e 100644 --- a/bfd/elf64-mips.c +++ b/bfd/elf64-mips.c @@ -2708,6 +2708,7 @@ mips_elf64_be_swap_reloc_out (bfd *abfd, const Elf_Internal_Rela *src, mirel.r_offset = src[0].r_offset; BFD_ASSERT(src[0].r_offset == src[1].r_offset); + BFD_ASSERT(src[0].r_offset == src[2].r_offset); mirel.r_type = ELF64_MIPS_R_TYPE (src[0].r_info); mirel.r_sym = ELF64_R_SYM (src[0].r_info);