From 8e92292ba6f0a7b19abd08c83d25e2a6aa03fcf5 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 22 Jun 2017 11:06:40 -0700 Subject: [PATCH] 2017-06-22 Eric Christopher Backport from mainline 2017-06-22 Eric Christopher * elf32-arm.c (elf32_arm_final_link_relocate): Use labs rather than abs to fix a truncation warning. --- bfd/ChangeLog | 8 ++++++++ bfd/elf32-arm.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index cae30e6b20e..085e9c460a7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,11 @@ +2017-06-22 Eric Christopher + + Backport from mainline + 2017-06-22 Eric Christopher + + * elf32-arm.c (elf32_arm_final_link_relocate): Use labs rather than + abs to fix a truncation warning. + 2017-06-20 Thomas Preud'homme Backport from mainline diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index 90286a84fa6..9f956d3188b 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -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; -- 2.47.2