public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gdb] gdb-17.2-rebase-f44: Fix:
@ 2026-06-27 23:59 Sergio Durigan Junior
0 siblings, 0 replies; only message in thread
From: Sergio Durigan Junior @ 2026-06-27 23:59 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 0172100cc0e7d8f54d919dd6a375548b8830b019
Author : Sergio Durigan Junior <sergiodj@redhat.com>
Date : 2019-01-21T15:26:26-05:00
Stats : +32/-0 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/gdb/c/0172100cc0e7d8f54d919dd6a375548b8830b019?branch=gdb-17.2-rebase-f44
Log:
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.
---
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 <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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-27 23:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-27 23:59 [rpms/gdb] gdb-17.2-rebase-f44: Fix: Sergio Durigan Junior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox