public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/binutils] rawhide: Rebase to commit 48997323b0f
Date: Fri, 05 Jun 2026 08:02:50 GMT	[thread overview]
Message-ID: <178064657053.1.3771370964275654936.rpms-binutils-0608389263e6@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/binutils
Branch : rawhide
Commit : 0608389263e66c7f74acb5bf7ac036ac1f76345b
Author : Nick Clifton <nickc@redhat.com>
Date   : 2026-06-05T08:59:45+01:00
Stats  : +168/-2 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/binutils/c/0608389263e66c7f74acb5bf7ac036ac1f76345b?branch=rawhide

Log:
Rebase to commit 48997323b0f

---
diff --git a/binutils-aarch64-ifuncs.patch b/binutils-aarch64-ifuncs.patch
new file mode 100644
index 0000000..55bd99a
--- /dev/null
+++ b/binutils-aarch64-ifuncs.patch
@@ -0,0 +1,159 @@
+--- binutils.orig/bfd/elfnn-aarch64.c	2026-04-17 09:16:32.707242517 +0100
++++ binutils-with-gold-2.46.50-48997323b0f/bfd/elfnn-aarch64.c	2026-06-04 12:50:40.994231960 +0100
+@@ -5392,9 +5392,11 @@ aarch64_tls_transition (bfd *input_bfd,
+ static bfd_vma
+ dtpoff_base (struct bfd_link_info *info)
+ {
++  asection * tls = elf_hash_table (info)->tls_sec;
++
+   /* If tls_sec is NULL, we should have signalled an error already.  */
+-  BFD_ASSERT (elf_hash_table (info)->tls_sec != NULL);
+-  return elf_hash_table (info)->tls_sec->vma;
++  BFD_ASSERT (tls != NULL);
++  return tls->vma;
+ }
+ 
+ /* Return the base VMA address which should be subtracted from real addresses
+@@ -5403,14 +5405,13 @@ dtpoff_base (struct bfd_link_info *info)
+ static bfd_vma
+ tpoff_base (struct bfd_link_info *info)
+ {
+-  struct elf_link_hash_table *htab = elf_hash_table (info);
+-
++  asection * tls = elf_hash_table (info)->tls_sec;
++  
+   /* If tls_sec is NULL, we should have signalled an error already.  */
+-  BFD_ASSERT (htab->tls_sec != NULL);
++  BFD_ASSERT (tls != NULL);
+ 
+-  bfd_vma base = align_power ((bfd_vma) TCB_SIZE,
+-			      htab->tls_sec->alignment_power);
+-  return htab->tls_sec->vma - base;
++  bfd_vma base = align_power ((bfd_vma) TCB_SIZE, tls->alignment_power);
++  return tls->vma - base;
+ }
+ 
+ static bfd_vma *
+@@ -6497,7 +6498,7 @@ elfNN_aarch64_final_link_relocate (reloc
+       break;
+ 
+     case BFD_RELOC_AARCH64_TLS_DTPREL:
+-      if (input_section->flags & SEC_ALLOC)
++      if (input_section->flags & SEC_ALLOC || elf_hash_table (info)->tls_sec == NULL)
+ 	return bfd_reloc_notsupported;
+       value -= dtpoff_base (info);
+       value += rel->r_addend;
+@@ -7272,6 +7273,17 @@ elfNN_aarch64_relocate_section (bfd *out
+ 		    }
+ 		  else if (indx == 0)
+ 		    {
++		      if (elf_hash_table (info)->tls_sec == NULL)
++			{
++			  _bfd_error_handler
++			    /* xgettext:c-format */
++			    (_("%pB(%pA+%#" PRIx64 "): "
++			       "unresolvable %s relocation against symbol `%s'"),
++			     input_bfd, input_section, (uint64_t) rel->r_offset, howto->name,
++			     h->root.root.string);
++			  return false;
++			}
++		      
+ 		      bfd_put_NN (output_bfd,
+ 				  relocation - dtpoff_base (info),
+ 				  globals->root.sgot->contents + off
+@@ -7301,6 +7313,17 @@ elfNN_aarch64_relocate_section (bfd *out
+ 		}
+ 	      else
+ 		{
++		  if (elf_hash_table (info)->tls_sec == NULL)
++		    {
++		      _bfd_error_handler
++			/* xgettext:c-format */
++			(_("%pB(%pA+%#" PRIx64 "): "
++			   "unresolvable %s relocation against symbol `%s'"),
++			 input_bfd, input_section, (uint64_t) rel->r_offset, howto->name,
++			 h->root.root.string);
++		      return false;
++		    }
++		  
+ 		  bfd_put_NN (output_bfd, (bfd_vma) 1,
+ 			      globals->root.sgot->contents + off);
+ 		  bfd_put_NN (output_bfd,
+@@ -7342,7 +7365,20 @@ elfNN_aarch64_relocate_section (bfd *out
+ 		  Elf_Internal_Rela rela;
+ 
+ 		  if (indx == 0)
+-		    rela.r_addend = relocation - dtpoff_base (info);
++		    {
++		      if (elf_hash_table (info)->tls_sec == NULL)
++			{
++			  _bfd_error_handler
++			    /* xgettext:c-format */
++			    (_("%pB(%pA+%#" PRIx64 "): "
++			       "unresolvable %s relocation against symbol `%s'"),
++			     input_bfd, input_section, (uint64_t) rel->r_offset, howto->name,
++			     h->root.root.string);
++			  return false;
++			}
++		      
++		      rela.r_addend = relocation - dtpoff_base (info);
++		    }
+ 		  else
+ 		    rela.r_addend = 0;
+ 
+@@ -7360,8 +7396,21 @@ elfNN_aarch64_relocate_section (bfd *out
+ 			      globals->root.sgot->contents + off);
+ 		}
+ 	      else
+-		bfd_put_NN (output_bfd, relocation - tpoff_base (info),
+-			    globals->root.sgot->contents + off);
++		{
++		  if (elf_hash_table (info)->tls_sec == NULL)
++		    {
++		      _bfd_error_handler
++			/* xgettext:c-format */
++			(_("%pB(%pA+%#" PRIx64 "): "
++			   "unresolvable %s relocation against symbol `%s'"),
++			 input_bfd, input_section, (uint64_t) rel->r_offset, howto->name,
++			 h->root.root.string);
++		      return false;
++		    }
++
++		  bfd_put_NN (output_bfd, relocation - tpoff_base (info),
++			      globals->root.sgot->contents + off);
++		}
+ 
+ 	      symbol_got_offset_mark (input_bfd, h, r_symndx);
+ 	    }
+@@ -7399,7 +7448,20 @@ elfNN_aarch64_relocate_section (bfd *out
+ 				   + off + globals->sgotplt_jump_table_size);
+ 
+ 		  if (indx == 0)
+-		    rela.r_addend = relocation - dtpoff_base (info);
++		    {
++		      if (elf_hash_table (info)->tls_sec == NULL)
++			{
++			  _bfd_error_handler
++			    /* xgettext:c-format */
++			    (_("%pB(%pA+%#" PRIx64 "): "
++			       "unresolvable %s relocation against symbol `%s'"),
++			     input_bfd, input_section, (uint64_t) rel->r_offset, howto->name,
++			     h->root.root.string);
++			  return false;
++			}
++		      
++		      rela.r_addend = relocation - dtpoff_base (info);
++		    }
+ 
+ 		  /* Allocate the next available slot in the PLT reloc
+ 		     section to hold our R_AARCH64_TLSDESC, the next
+--- binutils.orig/ld/testsuite/ld-elf/tls.exp	2026-06-04 15:04:55.967170259 +0100
++++ binutils-with-gold-2.46.50-48997323b0f/ld/testsuite/ld-elf/tls.exp	2026-06-04 15:08:11.936031107 +0100
+@@ -66,6 +66,7 @@ run_ld_link_tests [list \
+     ] \
+ ]
+ 
++setup_xfail "aarch64-*-*"
+ run_cc_link_tests [list \
+     [list \
+ 	"pr34165" \

diff --git a/binutils.spec b/binutils.spec
index f54b148..4d254d9 100644
--- a/binutils.spec
+++ b/binutils.spec
@@ -7,7 +7,7 @@ Name: binutils%{?_with_debug:-debug}
 # The variable %%{source} (see below) should be set to indicate which of these
 # origins is being used.
 Version: 2.46.50
-Release: 9%{?dist}
+Release: 10%{?dist}
 License: GPL-3.0-or-later AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND BSD-3-Clause AND GFDL-1.3-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-2.0-or-later
 URL: https://sourceware.org/binutils
 
@@ -133,7 +133,7 @@ URL: https://sourceware.org/binutils
 # correctly.  Note %%(echo) is used because you cannot directly set a
 # spec variable to a hexadecimal string value.
 
-%define commit_id %(echo "2ea3f3a7ac2")
+%define commit_id %(echo "48997323b0f")
 
 #----End of Configure Options------------------------------------------------
 
@@ -348,6 +348,10 @@ Patch19: binutils-gold-empty-dwp.patch
 # Lifetime: Permanent.
 Patch20: binutils-ld-default-z-text.patch
 
+# Purpose:  AArch64: Always process IFUNCS as such even if not in an allocated section.
+# Lifetime: Fixed soon.
+Patch21: binutils-aarch64-ifuncs.patch
+
 #----------------------------------------------------------------------------
 
 # Purpose:  Remove the Build protected-func-2 without PIE linker tests
@@ -1507,6 +1511,9 @@ exit 0
 
 #----------------------------------------------------------------------------
 %changelog
+* Thu Jun 04 2026 Nick Clifton <nickc@redhat.com> - 2.46.50-10
+- Rebase to commit 48997323b0f
+
 * Thu May 14 2026 Nick Clifton <nickc@redhat.com> - 2.46.50-9
 - Rebase to commit 2ea3f3a7ac2
 

             reply	other threads:[~2026-06-05  8:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-05  8:02 Nick Clifton [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-06-05  8:02 [rpms/binutils] rawhide: Rebase to commit 48997323b0f Nick Clifton

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=178064657053.1.3771370964275654936.rpms-binutils-0608389263e6@fedoraproject.org \
    --to=nickc@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