]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - include/ChangeLog
PR26493 UBSAN: elfnn-riscv.c left shift of negative value
authorAlan Modra <amodra@gmail.com>
Mon, 31 Aug 2020 03:47:06 +0000 (13:17 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 31 Aug 2020 10:58:10 +0000 (20:28 +0930)
commit1174d92070a85a8ad25e9b9686dd1b4921e96702
tree490ec9444c93d0d8bfe006afa9292a83eda0d8b1
parent227d539b17c60a74c583dc66a2c0467243eb4bb2
PR26493 UBSAN: elfnn-riscv.c left shift of negative value

include/
PR 26493
* opcode/riscv.h (OP_MASK_CSR, OP_MASK_CUSTOM_IMM)
(OP_MASK_FUNCT7, OP_MASK_RS3): Make unsigned.
bfd/
PR 26493
* elfnn-riscv.c (riscv_make_plt_header): Cast PLT_HEADER_SIZE to
unsigned when using with RISCV_ITYPE.
(_bfd_riscv_relax_call): Use an unsigned foff.
bfd/ChangeLog
bfd/elfnn-riscv.c
include/ChangeLog
include/opcode/riscv.h