diff --git a/_gdb.spec.Patch.include b/_gdb.spec.Patch.include index 74e8a67..4ee9916 100644 --- a/_gdb.spec.Patch.include +++ b/_gdb.spec.Patch.include @@ -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 + diff --git a/_gdb.spec.patch.include b/_gdb.spec.patch.include index f0da001..ff3c3b3 100644 --- a/_gdb.spec.patch.include +++ b/_gdb.spec.patch.include @@ -114,3 +114,4 @@ %patch114 -p1 %patch115 -p1 %patch116 -p1 +%patch117 -p1 diff --git a/_patch_order b/_patch_order index b59f1cf..8fac571 100644 --- a/_patch_order +++ b/_patch_order @@ -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 diff --git a/gdb-fix-bfd-error-temp.patch b/gdb-fix-bfd-error-temp.patch new file mode 100644 index 0000000..d0927fd --- /dev/null +++ b/gdb-fix-bfd-error-temp.patch @@ -0,0 +1,23 @@ +From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 +From: Sergio Durigan Junior +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;