Skip to contentSkip to conversation

binutils: Upgrade to 2.45.1 release

PATCH Superseded [email protected] 2 participants 2 messages Feb 3

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 binutils: Upgrade to 2.45.1 release

From: Hemanth Kumar M D <[email protected]>

Brings binutils 2.45.1 release and followed by latest commits from 2.45 branch:

12d0a1dbc1b i386: Add GLIBC_ABI_GNU_TLS dependency only if used e3a18893e1c LoongArch: Use more appropriate assertions for the relocation of TLS LE b136efd10a7 Re: dlltool memory leaks
b4bde11f310 ld: Don't use -mdirect-extern-access for LoongArch a813a6a6ea0 Re-enable development on the 2.45 branch
48324fde1e2 (tag: binutils-2_45_1) This is the 2.45.1 release ab776bc8685 lto: Set plugin_format to bfd_plugin_no only if known_used is set cec7ab85f24 aarch64: gas: Allow movprfx with fmmla and bfscale [PR gas/33562] 0b040187894 aarch64, gas: Relax Armv9.6-A mandatory feature set 4df2be75910 i386: Add GLIBC_ABI_GNU_TLS version dependency
71c1de4b0c8 x86-64: Add GLIBC_ABI_DT_X86_64_PLT version dependency b0fe5c23780 x86: Add GLIBC_ABI_GNU2_TLS version dependency
d5945a221ff x86: Copy non_got_ref_without_indirect_extern_access

Testing Results:

+-------------------------------+--------+--------+------+
| Metric                        | Before | After  | Diff |
+-------------------------------+--------+--------+------+
| Expected passes               | 317    | 317    | 0    |
| Unexpected failures           | 1      | 1      | 0    |
| Untested testcases            | 5      | 5      | 0    |
| Unsupported tests             | 8      | 8      | 0    |
+-------------------------------+--------+--------+------+

ld/configure is regenerated.

---
 .../binutils/binutils-2.45.inc                |    6 +-
 ...-system-directories-when-cross-linki.patch |   38 +-
 .../binutils/0008-Use-libtool-2.4.patch       | 1827 ++++++++---------
 3 files changed, 836 insertions(+), 1035 deletions(-)
meta/recipes-devtools/binutils/binutils-2.45.inc +3 -3
index 16a63cabc5..6e0d8cfa7d 100644
@@ -12,8 +12,8 @@ LIC_FILES_CHKSUM = "\
 
 # When upgrading to next major release, ensure that there is no trailing .0, so
 # that upstream version check can work correctly.
-PV = "2.45"
-CVE_VERSION = "2.45"
+PV = "2.45.1+git"
+CVE_VERSION = "2.45.1"
 SRCBRANCH ?= "binutils-2_45-branch"
 
 UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)"
@@ -21,7 +21,7 @@ UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)"
 CVE_STATUS[CVE-2025-7545] = "cpe-stable-backport: fix available in used git hash"
 CVE_STATUS[CVE-2025-7546] = "cpe-stable-backport: fix available in used git hash"
 
-SRCREV ?= "2f028c6bb163a045db95439fb92e1dcbc919413c"
+SRCREV ?= "b1300fdc25572ab9f523249aea2363f844f47957"
 BINUTILS_GIT_URI ?= "git://sourceware.org/git/binutils-gdb.git;branch=${SRCBRANCH};protocol=https"
 SRC_URI = "\
      ${BINUTILS_GIT_URI} \
meta/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch +19 -19
index 86ff7fdaa0..42374cbd31 100644
@@ -63,10 +63,10 @@ Signed-off-by: Khem Raj <[email protected]>
  9 files changed, 89 insertions(+), 4 deletions(-)
 
 diff --git a/ld/config.in b/ld/config.in
-index 37812241bd9..be89571196c 100644
+index 790efd336be..2b237bcda5e 100644
 --- a/ld/config.in
 +++ b/ld/config.in
-@@ -78,6 +78,9 @@
+@@ -86,6 +86,9 @@
     language is requested. */
  #undef ENABLE_NLS
  
@@ -77,7 +77,7 @@ index 37812241bd9..be89571196c 100644
  #undef EXTRA_SHLIB_EXTENSION
  
 diff --git a/ld/configure b/ld/configure
-index 4afc58566fc..ca3d58ff618 100755
+index cd410bd64d1..d3c0762133c 100755
 --- a/ld/configure
 +++ b/ld/configure
 @@ -841,6 +841,7 @@ enable_checking
@@ -88,7 +88,7 @@ index 4afc58566fc..ca3d58ff618 100755
  enable_gold
  enable_got
  enable_compressed_debug_sections
-@@ -1533,6 +1534,8 @@ Optional Features:
+@@ -1535,6 +1536,8 @@ Optional Features:
    --disable-largefile     omit support for large files
    --enable-checking       enable run-time checks
    --enable-targets        alternative target configurations
@@ -97,25 +97,25 @@ index 4afc58566fc..ca3d58ff618 100755
    --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
    --enable-got=<type>     GOT handling scheme (target, single, negative,
                            multigot)
-@@ -11514,7 +11517,7 @@ else
+@@ -11519,7 +11522,7 @@ else
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    lt_status=$lt_dlunknown
    cat > conftest.$ac_ext <<_LT_EOF
--#line 11517 "configure"
-+#line 11520 "configure"
+-#line 11522 "configure"
++#line 11525 "configure"
  #include "confdefs.h"
  
  #if HAVE_DLFCN_H
-@@ -11620,7 +11623,7 @@ else
+@@ -11625,7 +11628,7 @@ else
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    lt_status=$lt_dlunknown
    cat > conftest.$ac_ext <<_LT_EOF
--#line 11623 "configure"
-+#line 11626 "configure"
+-#line 11628 "configure"
++#line 11631 "configure"
  #include "confdefs.h"
  
  #if HAVE_DLFCN_H
-@@ -15367,6 +15370,19 @@ fi
+@@ -15372,6 +15375,19 @@ fi
  
  
  
@@ -136,7 +136,7 @@ index 4afc58566fc..ca3d58ff618 100755
  if test "${enable_gold+set}" = set; then :
    enableval=$enable_gold; case "${enableval}" in
 diff --git a/ld/configure.ac b/ld/configure.ac
-index 3ee84958b1c..99ea84513da 100644
+index f528ae42ef7..dcf1e17fae6 100644
 --- a/ld/configure.ac
 +++ b/ld/configure.ac
 @@ -115,6 +115,16 @@ AC_SUBST(use_sysroot)
@@ -176,10 +176,10 @@ index c8688153bd4..0b16caf347a 100644
    enum endian_enum endian;
  
 diff --git a/ld/ld.texi b/ld/ld.texi
-index 413335ad765..7bea7fd7e1f 100644
+index cf750d15259..3b3f1c53c37 100644
 --- a/ld/ld.texi
 +++ b/ld/ld.texi
-@@ -3350,6 +3350,18 @@ creation of the metadata note, if one had been enabled by an earlier
+@@ -3378,6 +3378,18 @@ creation of the metadata note, if one had been enabled by an earlier
  occurrence of the --package-metadata option.
  If the linker has been built with libjansson, then the JSON string
  will be validated.
@@ -227,7 +227,7 @@ index 75fd360d5e3..5a825c52bd3 100644
  
  static void
 diff --git a/ld/ldlex.h b/ld/ldlex.h
-index 815da76a4c0..53fabed4ba2 100644
+index c8d61478c60..c54eef8c170 100644
 --- a/ld/ldlex.h
 +++ b/ld/ldlex.h
 @@ -151,6 +151,8 @@ enum option_values
@@ -240,10 +240,10 @@ index 815da76a4c0..53fabed4ba2 100644
    OPTION_PRINT_OUTPUT_FORMAT,
    OPTION_PRINT_SYSROOT,
 diff --git a/ld/ldmain.c b/ld/ldmain.c
-index 7878bd3922f..c9293a3cf41 100644
+index 67c60c3f80d..175321a38cb 100644
 --- a/ld/ldmain.c
 +++ b/ld/ldmain.c
-@@ -672,6 +672,8 @@ main (int argc, char **argv)
+@@ -671,6 +671,8 @@ main (int argc, char **argv)
    command_line.warn_mismatch = true;
    command_line.warn_search_mismatch = true;
    command_line.check_section_addresses = -1;
@@ -252,7 +252,7 @@ index 7878bd3922f..c9293a3cf41 100644
  
    /* We initialize DEMANGLING based on the environment variable
       COLLECT_NO_DEMANGLE.  The gcc collect2 program will demangle the
-@@ -1876,7 +1878,7 @@ undefined_symbol (struct bfd_link_info *info,
+@@ -1875,7 +1877,7 @@ undefined_symbol (struct bfd_link_info *info,
        argv[1] = "undefined-symbol";
        argv[2] = (char *) name;
        argv[3] = NULL;
@@ -261,7 +261,7 @@ index 7878bd3922f..c9293a3cf41 100644
        if (verbose)
  	einfo (_("%P: About to run error handling script '%s' with arguments: '%s' '%s'\n"),
  	       argv[0], argv[1], argv[2]);
-@@ -1897,7 +1899,7 @@ undefined_symbol (struct bfd_link_info *info,
+@@ -1896,7 +1898,7 @@ undefined_symbol (struct bfd_link_info *info,
  	 carry on to issue the normal error message.  */
      }
  #endif /* SUPPORT_ERROR_HANDLING_SCRIPT */
meta/recipes-devtools/binutils/binutils/0008-Use-libtool-2.4.patch +814 -1013

2,866 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.49.0

Part of the diff is not shown here. View the raw message.

#1 lore raw
Quoted 53 lines · Hemanth.KumarMD

From: Hemanth Kumar M D <[email protected]>

Brings binutils 2.45.1 release and followed by latest commits from 2.45 branch:

12d0a1dbc1b i386: Add GLIBC_ABI_GNU_TLS dependency only if used e3a18893e1c LoongArch: Use more appropriate assertions for the relocation of TLS LE b136efd10a7 Re: dlltool memory leaks
b4bde11f310 ld: Don't use -mdirect-extern-access for LoongArch a813a6a6ea0 Re-enable development on the 2.45 branch
48324fde1e2 (tag: binutils-2_45_1) This is the 2.45.1 release ab776bc8685 lto: Set plugin_format to bfd_plugin_no only if known_used is set cec7ab85f24 aarch64: gas: Allow movprfx with fmmla and bfscale [PR gas/33562] 0b040187894 aarch64, gas: Relax Armv9.6-A mandatory feature set 4df2be75910 i386: Add GLIBC_ABI_GNU_TLS version dependency
71c1de4b0c8 x86-64: Add GLIBC_ABI_DT_X86_64_PLT version dependency b0fe5c23780 x86: Add GLIBC_ABI_GNU2_TLS version dependency
d5945a221ff x86: Copy non_got_ref_without_indirect_extern_access

Testing Results:

+-------------------------------+--------+--------+------+
| Metric                        | Before | After  | Diff |
+-------------------------------+--------+--------+------+
| Expected passes               | 317    | 317    | 0    |
| Unexpected failures           | 1      | 1      | 0    |
| Untested testcases            | 5      | 5      | 0    |
| Unsupported tests             | 8      | 8      | 0    |
+-------------------------------+--------+--------+------+

ld/configure is regenerated.

---
 .../binutils/binutils-2.45.inc                |    6 +-
 ...-system-directories-when-cross-linki.patch |   38 +-
 .../binutils/0008-Use-libtool-2.4.patch       | 1827 ++++++++---------
 3 files changed, 836 insertions(+), 1035 deletions(-)
meta/recipes-devtools/binutils/binutils-2.45.inc +2 -2
index 16a63cabc5..6e0d8cfa7d 100644
@@ -12,8 +12,8 @@ LIC_FILES_CHKSUM = "\
 
 # When upgrading to next major release, ensure that there is no trailing .0, so
 # that upstream version check can work correctly.
-PV = "2.45"
-CVE_VERSION = "2.45"
+PV = "2.45.1+git"
+CVE_VERSION = "2.45.1"
 SRCBRANCH ?= "binutils-2_45-branch"
 
 UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)"

meta/recipes-devtools/binutils/binutils-2.45.inc UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)" · line 24

Quoted 5 lines
meta/recipes-devtools/binutils/binutils-2.45.inc +1 -1
@@ -21,7 +21,7 @@ UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)"
 CVE_STATUS[CVE-2025-7545] = "cpe-stable-backport: fix available in used git hash"
 CVE_STATUS[CVE-2025-7546] = "cpe-stable-backport: fix available in used git hash"
 
-SRCREV ?= "2f028c6bb163a045db95439fb92e1dcbc919413c"
+SRCREV ?= "b1300fdc25572ab9f523249aea2363f844f47957"

Hello,

Sorry, I did not noticed earlier but that would put whinlatter ahead of master on the binutils recipes (there is at least one "meaningful" commit). Can you send this upgrade to master first? (And request a backport after that)

Also, you may want to send the backport request for the 2.45.1 upgrade on master:
https://git.openembedded.org/openembedded-core/commit/?id=ef0f7ed49bb53380c218dd529bcf25c5b6681223

Thanks!

Signature · 1 line
Yoann Congal