diff options
author | Nick Clifton <nickc@redhat.com> | 2019-01-28 17:09:41 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2019-01-28 17:09:41 +0000 |
commit | 9bc326ea397af262e590078444134668d6242b8f (patch) | |
tree | b44d0fe95136de5ca888caedb0759ec0503eeb87 | |
parent | c1f2eb43c3a08566acf7bda38c6b35d660b2461b (diff) | |
download | binutils-gdb-9bc326ea397af262e590078444134668d6242b8f.tar.gz |
Fix compilation warning building BFD library for ARM using gcc v9.
* elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
of 'labs' (and fix GCC 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 6c6ffbcdb86..039ded209ae 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,11 @@ +2019-01-28 Nick Clifton <nickc@redhat.com> + + Import from mainline: + 2019-01-21 Sergio Durigan Junior <sergiodj@redhat.com> + + * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead + of 'labs' (and fix GCC warning). + 2019-01-25 Nick Clifton <nickc@redhat.com> * po/ru.po: Updated Russian translation. diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index 53baea269bd..28ee9d55a85 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -10904,7 +10904,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 = labs (relocation); + value = llabs (relocation); if (value >= 0x1000) return bfd_reloc_overflow; |