diff options
author | Alan Modra <amodra@gmail.com> | 2019-12-18 18:33:14 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-12-18 18:38:13 +1030 |
commit | 2365f8d70c50afbfd6be69a4076ea6e78fb5485d (patch) | |
tree | fbb92f4ec54f3a4fb3efdff76ca0a248f6faf121 /bfd/netbsd.h | |
parent | 2480b6fa946bb2d2dc993b1c4a83a8e1258a75e8 (diff) | |
download | gdb-2365f8d70c50afbfd6be69a4076ea6e78fb5485d.zip gdb-2365f8d70c50afbfd6be69a4076ea6e78fb5485d.tar.gz 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/netbsd.h')
-rw-r--r-- | bfd/netbsd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/netbsd.h b/bfd/netbsd.h index 3e98140..47963dc 100644 --- a/bfd/netbsd.h +++ b/bfd/netbsd.h @@ -48,7 +48,7 @@ ((execp)->a_info & 0xfb00ffff) | ((((int) (machtype)) & 0x3ff) << 16)) #define N_SET_FLAGS(execp, flags) \ ((execp)->a_info = \ - ((execp)->a_info & 0x03ffffff) | ((flags & 0x03f) << 26)) + ((execp)->a_info & 0x03ffffff) | ((flags & 0x3fu) << 26)) #include "sysdep.h" #include "bfd.h" |