Fix:
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: | ^~~~ And unbreak the build.
This commit is contained in:
parent
31f5b96fb9
commit
0172100cc0
@ -474,3 +474,10 @@ Patch115: gdb-rhbz1553104-s390x-arch12-test.patch
|
||||
# Author: Sergio Durigan Junior.
|
||||
Patch116: gdb-rhbz795424-bitpos-arrayview.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: | ^~~~
|
||||
Patch117: gdb-fix-bfd-error-temp.patch
|
||||
|
||||
|
@ -114,3 +114,4 @@
|
||||
%patch114 -p1
|
||||
%patch115 -p1
|
||||
%patch116 -p1
|
||||
%patch117 -p1
|
||||
|
@ -114,3 +114,4 @@ gdb-archer.patch
|
||||
gdb-vla-intel-fix-print-char-array.patch
|
||||
gdb-rhbz1553104-s390x-arch12-test.patch
|
||||
gdb-rhbz795424-bitpos-arrayview.patch
|
||||
gdb-fix-bfd-error-temp.patch
|
||||
|
23
gdb-fix-bfd-error-temp.patch
Normal file
23
gdb-fix-bfd-error-temp.patch
Normal file
@ -0,0 +1,23 @@
|
||||
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;
|
Loading…
Reference in New Issue
Block a user