2017-06-22 Eric Christopher <echristo@gmail.com>
authorEric Christopher <echristo@gmail.com>
Thu, 22 Jun 2017 17:57:52 +0000 (10:57 -0700)
committerEric Christopher <echristo@gmail.com>
Thu, 22 Jun 2017 18:01:13 +0000 (11:01 -0700)
        * 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 647af61..cdd6c35 100644 (file)
@@ -1,3 +1,8 @@
+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-22  H.J. Lu  <hongjiu.lu@intel.com>
 
        * elf32-i386.c (elf_i386_merge_gnu_properties): If info->shstk
index 3bfe312..e499b0e 100644 (file)
@@ -10508,7 +10508,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;