This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb/binutils-2_28-branch] 2017-06-22 Eric Christopher <echristo at gmail dot com>


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8e92292ba6f0a7b19abd08c83d25e2a6aa03fcf5

commit 8e92292ba6f0a7b19abd08c83d25e2a6aa03fcf5
Author: Eric Christopher <echristo@gmail.com>
Date:   Thu Jun 22 11:06:40 2017 -0700

    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.

Diff:
---
 bfd/ChangeLog   | 8 ++++++++
 bfd/elf32-arm.c | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]