diff options
author | Alan Modra <amodra@gmail.com> | 2020-09-02 09:59:16 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-09-02 16:30:42 +0930 |
commit | 2f26cc79ccd114c46d781507fbefc2487ced54b2 (patch) | |
tree | 88793c7d1ad4e7ddffb8ab22e5e5df5e7dbcd4bf /bfd/elf32-pru.c | |
parent | f6e6b0521147cde2c5861c4c755b69e7839233cb (diff) | |
download | gdb-2f26cc79ccd114c46d781507fbefc2487ced54b2.zip gdb-2f26cc79ccd114c46d781507fbefc2487ced54b2.tar.gz gdb-2f26cc79ccd114c46d781507fbefc2487ced54b2.tar.bz2 |
ubasn: elf32-pru.c:570 left shift of negative value
* elf32-pru.c (pru_elf32_do_ldi32_relocate): Use an unsigned
type for "relocation".
Diffstat (limited to 'bfd/elf32-pru.c')
-rw-r--r-- | bfd/elf32-pru.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-pru.c b/bfd/elf32-pru.c index bc44a1b..9848871 100644 --- a/bfd/elf32-pru.c +++ b/bfd/elf32-pru.c @@ -539,7 +539,7 @@ pru_elf32_do_ldi32_relocate (bfd *abfd, reloc_howto_type *howto, bfd_byte *data, bfd_vma offset, bfd_vma symbol_value, bfd_vma addend) { - bfd_signed_vma relocation; + bfd_vma relocation; bfd_size_type octets = offset * OCTETS_PER_BYTE (abfd, input_section); bfd_byte *location; unsigned long in1, in2; |