public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sergio Durigan Junior <sergiodj@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: Fix:
Date: Sat, 27 Jun 2026 23:59:32 GMT	[thread overview]
Message-ID: <178260477250.1.9994227344655586131.rpms-gdb-0172100cc0e7@fedoraproject.org> (raw)

            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;

                 reply	other threads:[~2026-06-27 23:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178260477250.1.9994227344655586131.rpms-gdb-0172100cc0e7@fedoraproject.org \
    --to=sergiodj@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox