aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-12-18 18:33:14 +1030
committerAlan Modra <amodra@gmail.com>2019-12-18 18:38:13 +1030
commit2365f8d70c50afbfd6be69a4076ea6e78fb5485d (patch)
treefbb92f4ec54f3a4fb3efdff76ca0a248f6faf121 /bfd/elfxx-mips.c
parent2480b6fa946bb2d2dc993b1c4a83a8e1258a75e8 (diff)
downloadfsf-binutils-gdb-2365f8d70c50afbfd6be69a4076ea6e78fb5485d.zip
fsf-binutils-gdb-2365f8d70c50afbfd6be69a4076ea6e78fb5485d.tar.gz
fsf-binutils-gdb-2365f8d70c50afbfd6be69a4076ea6e78fb5485d.tar.bz2
Yet more signed overflow fixes
* elf-bfd.h (ELF_LOCAL_SYMBOL_HASH): Avoid signed overflow. * elf32-hppa.c (final_link_relocate): Likewise. * elf32-ppc.c (_bfd_elf_ppc_at_tls_transform): Likewise. (_bfd_elf_ppc_at_tprel_transform, is_insn_ds_form): Likewise. (is_insn_dq_form, ppc_elf_relocate_section): Likewise. * elf64-ppc.c (ok_lo_toc_insn, ppc64_elf_edit_toc): Likewise. (ppc64_elf_relocate_section): Likewise. * elfxx-mips.c (mips_elf_perform_relocation): Likewise. * netbsd.h (N_SET_FLAGS): Likewise.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r--bfd/elfxx-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index b1f83a0..3656046 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -6602,7 +6602,7 @@ mips_elf_perform_relocation (struct bfd_link_info *info,
}
/* Make this the JALX opcode. */
- x = (x & ~(0x3f << 26)) | (jalx_opcode << 26);
+ x = (x & ~(0x3fu << 26)) | (jalx_opcode << 26);
}
else if (cross_mode_jump_p && b_reloc_p (r_type))
{