From e652757bad63e4cf8c0c72df6e95c0c826f8e29d Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 22 Jun 2017 10:57:52 -0700 Subject: [PATCH] 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 | 5 +++++ bfd/elf32-arm.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 647af617a83..cdd6c3574ec 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +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-22 H.J. Lu * elf32-i386.c (elf_i386_merge_gnu_properties): If info->shstk diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index 3bfe31278d9..e499b0e8701 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -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; -- 2.30.2