bfd signed overflow fixes
Aimed at quietening ubsan. include/ * opcode/mmix.h (PUSHGO_INSN_BYTE): Make unsigned. (GO_INSN_BYTE, SETL_INSN_BYTE, INCML_INSN_BYTE, INCMH_INSN_BYTE), (INCH_INSN_BYTE, SWYM_INSN_BYTE, JMP_INSN_BYTE): Likewise. bfd/ * elf32-rx.c (elf32_rx_relax_section): Avoid signed overflow. * libaout.h (N_SET_INFO, N_SET_FLAGS): Likewise. * netbsd.h (write_object_contents): Likewise. * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Likewise. * libhppa.h (HPPA_R_CONSTANT): Don't signed extend with shifts. (stm32l4xx_create_replacing_stub_vldm): Don't truncate high bits with shifts. * elf32-nds32.h (R_NDS32_RELAX_ENTRY_DISABLE_RELAX_FLAG): Define using 1u shifted left. Ditto for other macros. * mmo.c (LOP): Make unsigned.
Showing
- bfd/ChangeLog 13 additions, 0 deletionsbfd/ChangeLog
- bfd/elf32-arm.c 9 additions, 9 deletionsbfd/elf32-arm.c
- bfd/elf32-nds32.h 12 additions, 12 deletionsbfd/elf32-nds32.h
- bfd/elf32-rx.c 2 additions, 2 deletionsbfd/elf32-rx.c
- bfd/libaout.h 2 additions, 2 deletionsbfd/libaout.h
- bfd/libhppa.h 1 addition, 1 deletionbfd/libhppa.h
- bfd/mmo.c 1 addition, 1 deletionbfd/mmo.c
- bfd/netbsd.h 1 addition, 1 deletionbfd/netbsd.h
- include/ChangeLog 6 additions, 0 deletionsinclude/ChangeLog
- include/opcode/mmix.h 8 additions, 8 deletionsinclude/opcode/mmix.h
Loading
Please register or sign in to comment