24 lines
1.0 KiB
Diff
24 lines
1.0 KiB
Diff
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
||
|
From: Sergio Durigan Junior <sergiodj@redhat.com>
|
||
|
Date: Mon, 21 Jan 2019 15:24:46 -0500
|
||
|
Subject: gdb-fix-bfd-error-temp.patch
|
||
|
|
||
|
;; Temporary fix for:
|
||
|
;; BUILDSTDERR: ../../bfd/elf32-arm.c: In function 'elf32_arm_final_link_relocate':
|
||
|
;; BUILDSTDERR: ../../bfd/elf32-arm.c:10907:10: error: absolute value function 'labs' given an argument of type 'bfd_signed_vma' {aka 'long long int'} but has parameter of type 'long int' which may cause truncation of value [-Werror=absolute-value]
|
||
|
;; BUILDSTDERR: 10907 | value = labs (relocation);
|
||
|
;; BUILDSTDERR: | ^~~~
|
||
|
|
||
|
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
|
||
|
--- 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;
|