Skip to contentSkip to conversation

binutils: bump to 2.45, default to 2.44, drop 2.42

PATCH In review Thomas Petazzoni via buildroot 1 participant 6 messages Nov 20, 2025 – Nov 21, 2025

lore
Share & tools
lore
#0 lore raw

cover binutils: bump to 2.45, default to 2.44, drop 2.42

Hello,

Since binutils 2.45.1 has been released, this series implements the usual dance around binutils versions.

It has been tested with:

An i386 glibc toolchain build:

BR2_BINUTILS_VERSION_2_45_X=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y

An ARM 32-bit uclibc toolchain build:

BR2_arm=y
BR2_cortex_a8=y
BR2_TOOLCHAIN_BUILDROOT_UCLIBC=y
BR2_BINUTILS_VERSION_2_45_X=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y

A RISC-V musl build, with older gcc, older headers:

BR2_riscv=y
BR2_TOOLCHAIN_BUILDROOT_MUSL=y
BR2_KERNEL_HEADERS_6_12=y
BR2_BINUTILS_VERSION_2_45_X=y
BR2_GCC_VERSION_13_X=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y

Thomas Petazzoni (3):
package/binutils: add support for binutils 2.45.1 package/binutils: make binutils 2.44 be the default package/binutils: remove support for binutils 2.42

 Config.in.legacy                              |   9 +
 ...ertion-fail-in-nios2_elf32_install_i.patch | 125 ---
 ...gnu23-compatibility-wrt-static_asser.patch |  90 --
 ...ngs-when-building-gprofng-with-Clang.patch | 770 ------------------
 ...gnu23-compatibility-wrt-unprototyped.patch | 619 --------------
 ...007-gprofng-fix-build-with-std-gnu23.patch | 199 -----
 .../{2.42 => 2.45.1}/0001-sh-conf.patch       |  12 +-
 .../0002-poison-system-directories.patch      |  61 +-
 package/binutils/Config.in.host               |  10 +-
 package/binutils/binutils.hash                |   2 +-
 package/binutils/binutils.mk                  |   2 +-
 11 files changed, 53 insertions(+), 1846 deletions(-)
 delete mode 100644 package/binutils/2.42/0003-PR27597-nios-assertion-fail-in-nios2_elf32_install_i.patch
 delete mode 100644 package/binutils/2.42/0004-opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch
 delete mode 100644 package/binutils/2.42/0005-Fix-32097-Warnings-when-building-gprofng-with-Clang.patch
 delete mode 100644 package/binutils/2.42/0006-gprofng-fix-std-gnu23-compatibility-wrt-unprototyped.patch
 delete mode 100644 package/binutils/2.42/0007-gprofng-fix-build-with-std-gnu23.patch
 rename package/binutils/{2.42 => 2.45.1}/0001-sh-conf.patch (84%)
 rename package/binutils/{2.42 => 2.45.1}/0002-poison-system-directories.patch (87%)
Signature · 6 lines
2.51.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 1/3 package/binutils: add support for binutils 2.45.1

We bring patches 0001 and 0002 that we carry for binutils 2.44. Patch 0002 requires a small update as a nearby configure option has been removed between 2.44 and 2.45. Patch 0003 that we have for binutils 2.44 is not needed as it is part of the 2.45 release.

Changes in 2.45:

* New versioned release of libsframe: libsframe.so.2. This release introduces versioned symbols with version node name LIBSFRAME_2.0. Some new symbols have been added to support the new flag SFRAME_F_FDE_FUNC_START_PCREL and retrieving flags from SFrame decoder and encoder objects:
- Addition of sframe_decoder_get_flags, sframe_decoder_get_offsetof_fde_start_addr, sframe_encoder_get_flags, sframe_encoder_get_offsetof_fde_start_addr.
This release also includes backward-incompatible ABI changes:
- Removal of sframe_get_funcdesc_with_addr.
- Change in the behavior of sframe_decoder_get_funcdesc_v2, sframe_encoder_add_funcdesc_v2 and sframe_encoder_write.

* On s390 64-bit (s390x), gas, ld, objdump, and readelf now support generating and processing SFrame V2 stack trace information (.sframe). The assembler generates SFrame info from CFI directives with option "--gsframe". The linker generates SFrame info for the linker-generated .plt section and merges all .sframe sections. Both objdump and readelf dump SFrame info with option "--sframe[=<section-name>]".

* For SFrame stack trace format, the function start address in each SFrame FDE has a changed encoding: The 32-bit signed integer now holds the offset of the start PC of the associated function from the sfde_func_start_address field itself (instead of the earlier where it was the offset from the start of the SFrame section itself). All SFrame sections generated by gas and ld now default to this new encoding, setting the (new) SFRAME_F_FDE_FUNC_START_PCREL flag.

Relocatable SFrame links are now fixed.

* Readelf now recognizes RISC-V GNU_PROPERTY_RISCV_FEATURE_1_CFI_SS and GNU_PROPERTY_RISCV_FEATURE_1_CFI_LP_UNLABELED for zicfiss and zicfilp extensions.

* For RISC-V dis-assembler, the definition of mapping symbol $x is changed, so the file needs to be rebuilt since 2.45 once used .option arch directives.

* The LoongArch disassembler now properly accepts multiple disassembly options given by -M, such as "-M no-aliases,numeric". (Previously only the first option took effect.)

---
 package/binutils/2.45.1/0001-sh-conf.patch    |  50 +++
 .../0002-poison-system-directories.patch      | 310 ++++++++++++++++++
 package/binutils/Config.in.host               |   4 +
 package/binutils/binutils.hash                |   1 +
 4 files changed, 365 insertions(+)
 create mode 100644 package/binutils/2.45.1/0001-sh-conf.patch
 create mode 100644 package/binutils/2.45.1/0002-poison-system-directories.patch
package/binutils/2.45.1/0001-sh-conf.patch new file +50 -0
new file mode 100644
index 0000000000..66104ca580
@@ -0,0 +1,50 @@
+From 0bf75276c392cac7794e78e1572abcd793d99e4e Mon Sep 17 00:00:00 2001
+From: Romain Naour <[email protected]>
+Date: Fri, 25 Dec 2015 11:38:13 +0100
+Subject: [PATCH] sh-conf
+
+Likewise, binutils has no idea about any of these new targets either, so we
+fix that up too.. now we're able to actually build a real toolchain for
+sh2a_nofpu- and other more ineptly named toolchains (and yes, there are more
+inept targets than that one, really. Go look, I promise).
+
+Upstream: N/A [Buildroot specific]
+
+[Romain: rebase on top of 2.32]
+Signed-off-by: Romain Naour <[email protected]>
+[Thomas: rebase on top of 2.29, in which sh64 support was removed.]
+Signed-off-by: Thomas Petazzoni <[email protected]>
+---
+ configure    | 2 +-
+ configure.ac | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure b/configure
+index bbfb5979546..bcd95684ae1 100755
+--- a/configure
++++ b/configure
+@@ -4056,7 +4056,7 @@ case "${target}" in
+   nvptx*-*-*)
+     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
+     ;;
+-  sh-*-*)
++  sh*-*-*)
+     case "${target}" in
+       sh*-*-elf)
+          ;;
+diff --git a/configure.ac b/configure.ac
+index f9694cdf901..d6a3623ba50 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1278,7 +1278,7 @@ case "${target}" in
+   nvptx*-*-*)
+     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
+     ;;
+-  sh-*-*)
++  sh*-*-*)
+     case "${target}" in
+       sh*-*-elf)
+          ;;
+-- 
+2.51.1
+
package/binutils/2.45.1/0002-poison-system-directories.patch new file +310 -0

310 lines not on this page · raw message

package/binutils/Config.in.host +4 -0
index 33002e0028..5def479d09 100644
@@ -25,6 +25,9 @@ config BR2_BINUTILS_VERSION_2_43_X
 config BR2_BINUTILS_VERSION_2_44_X
 	bool "binutils 2.44"
 
+config BR2_BINUTILS_VERSION_2_45_X
+	bool "binutils 2.45"
+
 endchoice
 
 config BR2_BINUTILS_VERSION
@@ -33,6 +36,7 @@ config BR2_BINUTILS_VERSION
 	default "2.42"		if BR2_BINUTILS_VERSION_2_42_X
 	default "2.43.1"	if BR2_BINUTILS_VERSION_2_43_X
 	default "2.44"		if BR2_BINUTILS_VERSION_2_44_X
+	default "2.45.1"	if BR2_BINUTILS_VERSION_2_45_X
 
 config BR2_BINUTILS_GPROFNG
 	bool "gprofng support"
package/binutils/binutils.hash +1 -0
index b40463262c..9e7a029461 100644
@@ -2,6 +2,7 @@
 sha512  155f3ba14cd220102f4f29a4f1e5cfee3c48aa03b74603460d05afb73c70d6657a9d87eee6eb88bf13203fe6f31177a5c9addc04384e956e7da8069c8ecd20a6  binutils-2.42.tar.xz
 sha512  20977ad17729141a2c26d358628f44a0944b84dcfefdec2ba029c2d02f40dfc41cc91c0631044560d2bd6f9a51e1f15846b4b311befbe14f1239f14ff7d57824  binutils-2.43.1.tar.xz
 sha512  b85d3bbc0e334cf67a96219d3c7c65fbf3e832b2c98a7417bf131f3645a0307057ec81cd2b29ff2563cec53e3d42f73e2c60cc5708e80d4a730efdcc6ae14ad7  binutils-2.44.tar.xz
+sha512  ea030419eba387579ab717be7e3223fc99e93b586860b06003c12489f93441640d4082736f76aa5e98233db4f46e232f536a45e471486de1f5b64e1b827c167e  binutils-2.45.1.tar.xz
 
 # Locally calculated (fetched from Github)
 sha512  46c336a16bde7b73dc4ceac0986887d47d542a1452e1936ef871b5e76afdb6cad4b18ccb4d93341358e7bb92c2ef74781e1fb72935d527d15251ac9f9daa8305  binutils-gdb-arc-2024.12-release.tar.gz
Signature · 6 lines
2.51.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 1/3] package/binutils: add support for binutils 2.45.1

Quoted 55 lines · Thomas Petazzoni via buildroot

We bring patches 0001 and 0002 that we carry for binutils 2.44. Patch 0002 requires a small update as a nearby configure option has been removed between 2.44 and 2.45. Patch 0003 that we have for binutils 2.44 is not needed as it is part of the 2.45 release.

Changes in 2.45:

* New versioned release of libsframe: libsframe.so.2. This release introduces versioned symbols with version node name LIBSFRAME_2.0. Some new
symbols
have been added to support the new flag SFRAME_F_FDE_FUNC_START_PCREL
and
retrieving flags from SFrame decoder and encoder objects:
- Addition of sframe_decoder_get_flags, sframe_decoder_get_offsetof_fde_start_addr,
sframe_encoder_get_flags,
sframe_encoder_get_offsetof_fde_start_addr.
This release also includes backward-incompatible ABI changes:
- Removal of sframe_get_funcdesc_with_addr.
- Change in the behavior of sframe_decoder_get_funcdesc_v2, sframe_encoder_add_funcdesc_v2 and sframe_encoder_write.

* On s390 64-bit (s390x), gas, ld, objdump, and readelf now support generating and processing SFrame V2 stack trace information (.sframe). The
assembler
generates SFrame info from CFI directives with option "--gsframe".
The
linker generates SFrame info for the linker-generated .plt section
and merges
all .sframe sections. Both objdump and readelf dump SFrame info with
option
"--sframe[=<section-name>]".

* For SFrame stack trace format, the function start address in each SFrame FDE has a changed encoding: The 32-bit signed integer now holds the
offset
of the start PC of the associated function from the
sfde_func_start_address
field itself (instead of the earlier where it was the offset from the
start
of the SFrame section itself). All SFrame sections generated by gas
and ld
now default to this new encoding, setting the (new) SFRAME_F_FDE_FUNC_START_PCREL flag.

Relocatable SFrame links are now fixed.

* Readelf now recognizes RISC-V GNU_PROPERTY_RISCV_FEATURE_1_CFI_SS and GNU_PROPERTY_RISCV_FEATURE_1_CFI_LP_UNLABELED for zicfiss and zicfilp extensions.

* For RISC-V dis-assembler, the definition of mapping symbol $x is changed, so the file needs to be rebuilt since 2.45 once used .option arch
directives.

Quoted 6 lines

* The LoongArch disassembler now properly accepts multiple disassembly options given by -M, such as "-M no-aliases,numeric". (Previously
only the
first option took effect.)

Series applied to next, thanks.
For info, I fixed the binutils version 2.45.1 Kconfig prompt. See:
https://gitlab.com/buildroot.org/buildroot/-/commit/b7d5ff9d51507dcef721ff3d5db862f8715d3351#48ea993dbd04b7e5bbf317a81c0aa3446cd106dd_36_39

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

Re: [Buildroot] [PATCH 1/3] package/binutils: add support for binutils 2.45.1

Quoted 3 lines · On Fri, 21 Nov 2025 16:13:35 +0100 Julien Olivain <[email protected]> wrote:

Series applied to next, thanks.
For info, I fixed the binutils version 2.45.1 Kconfig prompt. See:
https://gitlab.com/buildroot.org/buildroot/-/commit/b7d5ff9d51507dcef721ff3d5db862f8715d3351#48ea993dbd04b7e5bbf317a81c0aa3446cd106dd_36_39

Thanks a lot for the fix!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

PATCH 2/3 package/binutils: make binutils 2.44 be the default

In reply to Thomas Petazzoni via buildroot

Now that support for binutils 2.45 has been introduced, we follow our policy of making binutils 2.44 the default version.

---
 package/binutils/Config.in.host | 2 +-
 package/binutils/binutils.mk    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/binutils/Config.in.host +1 -1
index 5def479d09..1bafdb0437 100644
@@ -7,7 +7,7 @@ config BR2_PACKAGE_HOST_BINUTILS_SUPPORTS_CFI
 
 choice
 	prompt "Binutils Version"
-	default BR2_BINUTILS_VERSION_2_43_X if !BR2_arc
+	default BR2_BINUTILS_VERSION_2_44_X if !BR2_arc
 	default BR2_BINUTILS_VERSION_ARC if BR2_arc
 	help
 	  Select the version of binutils you wish to use.
package/binutils/binutils.mk +1 -1
index c79f3414af..0f2384d69d 100644
@@ -11,7 +11,7 @@ ifeq ($(BINUTILS_VERSION),)
 ifeq ($(BR2_arc),y)
 BINUTILS_VERSION = arc-2024.12-release
 else
-BINUTILS_VERSION = 2.43.1
+BINUTILS_VERSION = 2.44
 endif
 endif # BINUTILS_VERSION
 
Signature · 6 lines
2.51.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

PATCH 3/3 package/binutils: remove support for binutils 2.42

In reply to Thomas Petazzoni via buildroot

Now that binutils 2.45 has been introduced and binutils 2.44 made the default version, drop the oldest supported version, binutils 2.42, keeping only the 3 last versions supported: 2.43, 2.44 and 2.45.

---
 Config.in.legacy                              |   9 +
 package/binutils/2.42/0001-sh-conf.patch      |  50 --
 .../2.42/0002-poison-system-directories.patch | 309 -------
 ...ertion-fail-in-nios2_elf32_install_i.patch | 125 ---
 ...gnu23-compatibility-wrt-static_asser.patch |  90 --
 ...ngs-when-building-gprofng-with-Clang.patch | 770 ------------------
 ...gnu23-compatibility-wrt-unprototyped.patch | 619 --------------
 ...007-gprofng-fix-build-with-std-gnu23.patch | 199 -----
 package/binutils/Config.in.host               |   4 -
 package/binutils/binutils.hash                |   1 -
 10 files changed, 9 insertions(+), 2167 deletions(-)
 delete mode 100644 package/binutils/2.42/0001-sh-conf.patch
 delete mode 100644 package/binutils/2.42/0002-poison-system-directories.patch
 delete mode 100644 package/binutils/2.42/0003-PR27597-nios-assertion-fail-in-nios2_elf32_install_i.patch
 delete mode 100644 package/binutils/2.42/0004-opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch
 delete mode 100644 package/binutils/2.42/0005-Fix-32097-Warnings-when-building-gprofng-with-Clang.patch
 delete mode 100644 package/binutils/2.42/0006-gprofng-fix-std-gnu23-compatibility-wrt-unprototyped.patch
 delete mode 100644 package/binutils/2.42/0007-gprofng-fix-build-with-std-gnu23.patch
Config.in.legacy +9 -0
index 36296ca843..e6fc22a3d2 100644
@@ -144,6 +144,15 @@ endif
 
 ###############################################################################
 
+comment "Legacy options removed in 2026.02"
+
+config BR2_BINUTILS_VERSION_2_42_X
+	bool "binutils 2.42 has been removed"
+	select BR2_LEGACY
+	help
+	  binutils 2.42 has been removed, select a newer version
+	  instead.
+
 comment "Legacy options removed in 2025.11"
 
 config BR2_PACKAGE_OLA
package/binutils/2.42/0001-sh-conf.patch deleted +0 -50

50 lines not on this page · raw message

package/binutils/2.42/0002-poison-system-directories.patch deleted +0 -309

309 lines not on this page · raw message

package/binutils/2.42/0003-PR27597-nios-assertion-fail-in-nios2_elf32_install_i.patch deleted +0 -125

125 lines not on this page · raw message

package/binutils/2.42/0004-opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch deleted +0 -90

90 lines not on this page · raw message

package/binutils/2.42/0005-Fix-32097-Warnings-when-building-gprofng-with-Clang.patch deleted +0 -770

770 lines not on this page · raw message

package/binutils/2.42/0006-gprofng-fix-std-gnu23-compatibility-wrt-unprototyped.patch deleted +0 -619

619 lines not on this page · raw message

package/binutils/2.42/0007-gprofng-fix-build-with-std-gnu23.patch deleted +0 -199

199 lines not on this page · raw message

package/binutils/Config.in.host +0 -4
index 1bafdb0437..3092ed5b4a 100644
@@ -16,9 +16,6 @@ config BR2_BINUTILS_VERSION_ARC
 	bool "binutils arc (2.43)"
 	depends on BR2_arc
 
-config BR2_BINUTILS_VERSION_2_42_X
-	bool "binutils 2.42"
-
 config BR2_BINUTILS_VERSION_2_43_X
 	bool "binutils 2.43.1"
 
@@ -33,7 +30,6 @@ endchoice
 config BR2_BINUTILS_VERSION
 	string
 	default "arc-2024.12-release"	if BR2_BINUTILS_VERSION_ARC
-	default "2.42"		if BR2_BINUTILS_VERSION_2_42_X
 	default "2.43.1"	if BR2_BINUTILS_VERSION_2_43_X
 	default "2.44"		if BR2_BINUTILS_VERSION_2_44_X
 	default "2.45.1"	if BR2_BINUTILS_VERSION_2_45_X
package/binutils/binutils.hash +0 -1
index 9e7a029461..183b7c1f4e 100644
@@ -1,5 +1,4 @@
 # From https://gcc.gnu.org/pub/binutils/releases/sha512.sum
-sha512  155f3ba14cd220102f4f29a4f1e5cfee3c48aa03b74603460d05afb73c70d6657a9d87eee6eb88bf13203fe6f31177a5c9addc04384e956e7da8069c8ecd20a6  binutils-2.42.tar.xz
 sha512  20977ad17729141a2c26d358628f44a0944b84dcfefdec2ba029c2d02f40dfc41cc91c0631044560d2bd6f9a51e1f15846b4b311befbe14f1239f14ff7d57824  binutils-2.43.1.tar.xz
 sha512  b85d3bbc0e334cf67a96219d3c7c65fbf3e832b2c98a7417bf131f3645a0307057ec81cd2b29ff2563cec53e3d42f73e2c60cc5708e80d4a730efdcc6ae14ad7  binutils-2.44.tar.xz
 sha512  ea030419eba387579ab717be7e3223fc99e93b586860b06003c12489f93441640d4082736f76aa5e98233db4f46e232f536a45e471486de1f5b64e1b827c167e  binutils-2.45.1.tar.xz
Signature · 6 lines
2.51.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot