aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-mips.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2012-05-19 19:13:56 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2012-05-19 19:13:56 +0000
commitb0189df0335494087465543e963d58eb30307569 (patch)
tree4080a35465430f58efb17c8861fe71a163d08535 /bfd/elf64-mips.c
parenta6ff997ce8307ea4be649d4e8de0c07d21048a30 (diff)
downloadgdb-b0189df0335494087465543e963d58eb30307569.zip
gdb-b0189df0335494087465543e963d58eb30307569.tar.gz
gdb-b0189df0335494087465543e963d58eb30307569.tar.bz2
* elf64-mips.c (mips_elf64_be_swap_reloc_out): Also make sure
the third reloc offset is the same as the first.
Diffstat (limited to 'bfd/elf64-mips.c')
-rw-r--r--bfd/elf64-mips.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf64-mips.c b/bfd/elf64-mips.c
index a835f66..054b262 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);