ubasn: elf32-pru.c:570 left shift of negative value
authorAlan Modra <amodra@gmail.com>
Wed, 2 Sep 2020 00:29:16 +0000 (09:59 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 2 Sep 2020 07:00:42 +0000 (16:30 +0930)
* elf32-pru.c (pru_elf32_do_ldi32_relocate): Use an unsigned
type for "relocation".

bfd/ChangeLog
bfd/elf32-pru.c

index 4c152f5183013817873c56aab140a820b25f31ef..d45c0e8bee213da10cf3c1997079ce2c04bc3ba0 100644 (file)
@@ -1,3 +1,8 @@
+2020-09-02  Alan Modra  <amodra@gmail.com>
+
+       * elf32-pru.c (pru_elf32_do_ldi32_relocate): Use an unsigned
+       type for "relocation".
+
 2020-09-01  Alan Modra  <amodra@gmail.com>
 
        * reloc.c (N_ONES): Handle N=0.
index bc44a1bd12654dad20bf1011154a784fe0738396..9848871e62cafb25230c6ef72f78b9f003a25777 100644 (file)
@@ -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;