]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2017-06-22 Eric Christopher <echristo@gmail.com>
authorEric Christopher <echristo@gmail.com>
Thu, 22 Jun 2017 18:06:40 +0000 (11:06 -0700)
committerEric Christopher <echristo@gmail.com>
Thu, 22 Jun 2017 18:06:40 +0000 (11:06 -0700)
        Backport from mainline
        2017-06-22 Eric Christopher <echristo@gmail.com>

        * elf32-arm.c (elf32_arm_final_link_relocate): Use labs rather than
        abs to fix a truncation warning.

bfd/ChangeLog
bfd/elf32-arm.c

index cae30e6b20ed0b698cb7585fe2dad9a0ee31f7fa..085e9c460a7a70d02d4b3006cacf7d3fb05b5fce 100644 (file)
@@ -1,3 +1,11 @@
+2017-06-22  Eric Christopher  <echristo@gmail.com>
+
+       Backport from mainline
+       2017-06-22 Eric Christopher <echristo@gmail.com>
+
+        * elf32-arm.c (elf32_arm_final_link_relocate): Use labs rather than
+        abs to fix a truncation warning.
+
 2017-06-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
 
        Backport from mainline
index 90286a84fa6ca40c6ebdbe003367b5b4b09992cd..9f956d3188b1ce04d8b34736578b67d8e15e6f33 100644 (file)
@@ -10507,7 +10507,7 @@ elf32_arm_final_link_relocate (reloc_howto_type *           howto,
 
        /* PR 21523: Use an absolute value.  The user of this reloc will
           have already selected an ADD or SUB insn appropriately.  */
-       value = abs (relocation);
+       value = labs (relocation);
 
        if (value >= 0x1000)
          return bfd_reloc_overflow;