package/binutils: add support for binutils 2.46.0
PATCH 1/3 package/binutils: add support for binutils 2.46.0
https://sourceware.org/pipermail/binutils/2026-February/148149.html
" This release contains numerous bug fixes, and also the following new
features:
* Support for new instructions added to AMD, ARM and RISC-V architectures.
* Support for version 3 of the SFrame standard.
* The readelf program can now display the contents of Global Offset Tables.
* Improved linker tagging support."
We bring and rebased patches 0001 and 0002 that we carry for binutils 2.45.
--- package/binutils/2.46.0/0001-sh-conf.patch | 52 +++ .../0002-poison-system-directories.patch | 312 ++++++++++++++++++ package/binutils/Config.in.host | 4 + package/binutils/binutils.hash | 1 + 4 files changed, 369 insertions(+) create mode 100644 package/binutils/2.46.0/0001-sh-conf.patch create mode 100644 package/binutils/2.46.0/0002-poison-system-directories.patch
package/binutils/2.46.0/0001-sh-conf.patch new file +52 -0
@@ -0,0 +1,52 @@ +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]> +[Bernd: rebased for version 2.46.0] +Signed-off-by: Bernd Kuhls <[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 +@@ -4196,7 +4196,7 @@ + nvptx*-*-*) + noconfigdirs="$noconfigdirs target-libssp" + ;; +- 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 +@@ -1365,7 +1365,7 @@ + nvptx*-*-*) + noconfigdirs="$noconfigdirs target-libssp" + ;; +- sh-*-*) ++ sh*-*-*) + case "${target}" in + sh*-*-elf) + ;; +-- +2.51.1 +
package/binutils/2.46.0/0002-poison-system-directories.patch new file +312 -0
312 lines not on this page · raw message
package/binutils/Config.in.host +4 -0
@@ -25,6 +25,9 @@ config BR2_BINUTILS_VERSION_2_44_X config BR2_BINUTILS_VERSION_2_45_X bool "binutils 2.45.1" +config BR2_BINUTILS_VERSION_2_46_X + bool "binutils 2.46.0" + endchoice config BR2_BINUTILS_VERSION
@@ -33,6 +36,7 @@ config BR2_BINUTILS_VERSION 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 + default "2.46.0" if BR2_BINUTILS_VERSION_2_46_X config BR2_BINUTILS_GPROFNG bool "gprofng support"
package/binutils/binutils.hash +1 -0
@@ -2,6 +2,7 @@ sha512 20977ad17729141a2c26d358628f44a0944b84dcfefdec2ba029c2d02f40dfc41cc91c0631044560d2bd6f9a51e1f15846b4b311befbe14f1239f14ff7d57824 binutils-2.43.1.tar.xz sha512 b85d3bbc0e334cf67a96219d3c7c65fbf3e832b2c98a7417bf131f3645a0307057ec81cd2b29ff2563cec53e3d42f73e2c60cc5708e80d4a730efdcc6ae14ad7 binutils-2.44.tar.xz sha512 ea030419eba387579ab717be7e3223fc99e93b586860b06003c12489f93441640d4082736f76aa5e98233db4f46e232f536a45e471486de1f5b64e1b827c167e binutils-2.45.1.tar.xz +sha512 32f880bb4f69351f4ae54a5d00359625c6c49d8e76624fb5cffdf174c79c8d3212f66225b81c12933c6ed59604ab652560773dd92fab384b930c97a9d4e1fdf2 binutils-2.46.0.tar.xz # Locally calculated (fetched from Github) sha512 46c336a16bde7b73dc4ceac0986887d47d542a1452e1936ef871b5e76afdb6cad4b18ccb4d93341358e7bb92c2ef74781e1fb72935d527d15251ac9f9daa8305 binutils-gdb-arc-2024.12-release.tar.gz
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/3 package/binutils: make binutils 2.45.1 be the default
Now that support for binutils 2.46.0 has been introduced, we follow our policy of making binutils 2.45.1 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
@@ -7,7 +7,7 @@ config BR2_PACKAGE_HOST_BINUTILS_SUPPORTS_CFI choice prompt "Binutils Version" - default BR2_BINUTILS_VERSION_2_44_X if !BR2_arc + default BR2_BINUTILS_VERSION_2_45_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
@@ -11,7 +11,7 @@ ifeq ($(BINUTILS_VERSION),) ifeq ($(BR2_arc),y) BINUTILS_VERSION = arc-2024.12-release else -BINUTILS_VERSION = 2.44 +BINUTILS_VERSION = 2.45.1 endif endif # BINUTILS_VERSION
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/3 package/binutils: remove support for binutils 2.43
In reply to Bernd KuhlsNow that binutils 2.46.0 has been introduced and binutils 2.45.1 made the default version, drop the oldest supported version, binutils 2.43, keeping only the 3 last versions supported: 2.44, 2.45.1 and 2.46.0.
--- Config.in.legacy | 7 + package/binutils/2.43.1/0001-sh-conf.patch | 50 -- .../0002-poison-system-directories.patch | 307 ------- .../2.43.1/0003-objdump-memleak.patch | 31 - ...gnu23-compatibility-wrt-static_asser.patch | 90 -- ...ngs-when-building-gprofng-with-Clang.patch | 801 ------------------ ...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, 7 insertions(+), 2102 deletions(-) delete mode 100644 package/binutils/2.43.1/0001-sh-conf.patch delete mode 100644 package/binutils/2.43.1/0002-poison-system-directories.patch delete mode 100644 package/binutils/2.43.1/0003-objdump-memleak.patch delete mode 100644 package/binutils/2.43.1/0004-opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch delete mode 100644 package/binutils/2.43.1/0005-Fix-32097-Warnings-when-building-gprofng-with-Clang.patch delete mode 100644 package/binutils/2.43.1/0006-gprofng-fix-std-gnu23-compatibility-wrt-unprototyped.patch delete mode 100644 package/binutils/2.43.1/0007-gprofng-fix-build-with-std-gnu23.patch
Config.in.legacy +7 -0
@@ -146,6 +146,13 @@ endif comment "Legacy options removed in 2026.02" +config BR2_BINUTILS_VERSION_2_43_X + bool "binutils 2.43 has been removed" + select BR2_LEGACY + help + binutils 2.43 has been removed, select a newer version + instead. + config BR2_PACKAGE_DVDRW_TOOLS bool "dvdrw-tools removed" select BR2_LEGACY
package/binutils/2.43.1/0001-sh-conf.patch deleted +0 -50
50 lines not on this page · raw message
package/binutils/2.43.1/0002-poison-system-directories.patch deleted +0 -307
307 lines not on this page · raw message
package/binutils/2.43.1/0003-objdump-memleak.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From ba6ad3a18cb26b79e0e3b84c39f707535bbc344d Mon Sep 17 00:00:00 2001 -From: Alan Modra <[email protected]> -Date: Wed, 19 Feb 2025 07:58:54 +1030 -Subject: [PATCH] PR32716, objdump -i memory leak - -PR binutils/32716 -* bucomm.c (display_info): Free arg.info. - -Upstream: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ba6ad3a18cb26b79e0e3b84c39f707535bbc344d - -CVE: CVE-2025-3198 -Signed-off-by: Titouan Christophe <[email protected]> ---- - binutils/bucomm.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/binutils/bucomm.c b/binutils/bucomm.c -index ccf54099154..d4554737db1 100644 ---- a/binutils/bucomm.c -+++ b/binutils/bucomm.c -@@ -435,6 +435,7 @@ display_info (void) - if (!arg.error) - display_target_tables (&arg); - -+ free (arg.info); - return arg.error; - } - --- -2.43.5 -
package/binutils/2.43.1/0004-opcodes-fix-std-gnu23-compatibility-wrt-static_asser.patch deleted +0 -90
90 lines not on this page · raw message
package/binutils/2.43.1/0005-Fix-32097-Warnings-when-building-gprofng-with-Clang.patch deleted +0 -801
801 lines not on this page · raw message
package/binutils/2.43.1/0006-gprofng-fix-std-gnu23-compatibility-wrt-unprototyped.patch deleted +0 -619
619 lines not on this page · raw message
package/binutils/2.43.1/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
@@ -16,9 +16,6 @@ config BR2_BINUTILS_VERSION_ARC bool "binutils arc (2.43)" depends on BR2_arc -config BR2_BINUTILS_VERSION_2_43_X - bool "binutils 2.43.1" - config BR2_BINUTILS_VERSION_2_44_X bool "binutils 2.44"
@@ -33,7 +30,6 @@ endchoice config BR2_BINUTILS_VERSION string default "arc-2024.12-release" if BR2_BINUTILS_VERSION_ARC - 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 default "2.46.0" if BR2_BINUTILS_VERSION_2_46_X
package/binutils/binutils.hash +0 -1
@@ -1,5 +1,4 @@ # From https://gcc.gnu.org/pub/binutils/releases/sha512.sum -sha512 20977ad17729141a2c26d358628f44a0944b84dcfefdec2ba029c2d02f40dfc41cc91c0631044560d2bd6f9a51e1f15846b4b311befbe14f1239f14ff7d57824 binutils-2.43.1.tar.xz sha512 b85d3bbc0e334cf67a96219d3c7c65fbf3e832b2c98a7417bf131f3645a0307057ec81cd2b29ff2563cec53e3d42f73e2c60cc5708e80d4a730efdcc6ae14ad7 binutils-2.44.tar.xz sha512 ea030419eba387579ab717be7e3223fc99e93b586860b06003c12489f93441640d4082736f76aa5e98233db4f46e232f536a45e471486de1f5b64e1b827c167e binutils-2.45.1.tar.xz sha512 32f880bb4f69351f4ae54a5d00359625c6c49d8e76624fb5cffdf174c79c8d3212f66225b81c12933c6ed59604ab652560773dd92fab384b930c97a9d4e1fdf2 binutils-2.46.0.tar.xz
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 13 lines · Bernd Kuhls
https://sourceware.org/pipermail/binutils/2026-February/148149.html
" This release contains numerous bug fixes, and also the following new
features:* Support for new instructions added to AMD, ARM and RISC-V architectures.
* Support for version 3 of the SFrame standard.
* The readelf program can now display the contents of Global Offset Tables.
Quoted 6 lines
* Improved linker tagging support."
We bring and rebased patches 0001 and 0002 that we carry for binutils 2.45.
Signed-off-by Bernd Kuhls <[email protected]>
Series applied to next, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot