diff options
author | Eric Christopher <echristo@gmail.com> | 2017-06-22 11:06:40 -0700 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2017-06-22 11:06:40 -0700 |
commit | 8e92292ba6f0a7b19abd08c83d25e2a6aa03fcf5 (patch) | |
tree | 46905261c27648be0da0eb8d80e582ded07f5a8b | |
parent | 3ea5aedfeb6938921c65201ec1488020445b7aea (diff) | |
download | gdb-8e92292ba6f0a7b19abd08c83d25e2a6aa03fcf5.zip gdb-8e92292ba6f0a7b19abd08c83d25e2a6aa03fcf5.tar.gz gdb-8e92292ba6f0a7b19abd08c83d25e2a6aa03fcf5.tar.bz2 |
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.
-rw-r--r-- | bfd/ChangeLog | 8 | ||||
-rw-r--r-- | bfd/elf32-arm.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index cae30e6..085e9c4 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index 90286a8..9f956d3 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; |