diff options
author | Alan Modra <amodra@gmail.com> | 2025-03-31 19:19:28 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2025-04-01 23:45:46 +1030 |
commit | 7bc46c997839cbcb02f987f4cbf776b7a3bcc6f8 (patch) | |
tree | 65d9a3307978d8be953a6b716483d29625bdfe03 /gdb/python/py-lazy-string.c | |
parent | 8c78862afb2664f357fd0c89de5feb6f302afc0a (diff) | |
download | binutils-7bc46c997839cbcb02f987f4cbf776b7a3bcc6f8.zip binutils-7bc46c997839cbcb02f987f4cbf776b7a3bcc6f8.tar.gz binutils-7bc46c997839cbcb02f987f4cbf776b7a3bcc6f8.tar.bz2 |
ubsan: nds32 undefined shift
Avoid implementation defined behaviour right shift of negative values,
and undefined behaviour left shift of negative values. While this
change might give different results in the top bit of a bfd_vma
(rightshift is 1), that doesn't matter as only the bottom 8 bits of
the relocation are used.
* elf32-nds32.c (nds32_elf_do_9_pcrel_reloc): Calculate relocation
using a bfd_vma type.
Diffstat (limited to 'gdb/python/py-lazy-string.c')
0 files changed, 0 insertions, 0 deletions