package/binutils: add support for binutils 2.47
PATCH 1/1 package/binutils: add support for binutils 2.47
https://sourceware.org/pipermail/binutils/2026-July/150449.html
" This release contains numerous bug fixes, and also the
following new features:
* A new assembler command line option: --reloc-section-sym=[all|internal|none] controls whether relocations referencing local binding symbols are adjusted to use section symbols.
* Add support for RISC-V standard extensions:
zalasr v1.0, svrsw60t59b v1.0, zvabd v1.0, smpmpmt v1.0, zvqwdota8i, zvqwdota16i, zvfwdota16bf and zvfqwdota8f v1.0, zvqwbdota8i, zvqwbdota16i, zvfwbdota16bf, zvfqwbdota8f and zvfbdota32f v1.0, SpacemiT: xsmtvdot v1.0, xsmtvdotii v1.0.
* The AArch64 disassembler now accepts a command line option of "-M annotate" which displays the symbol associated with undefined instructions, should there be one.
Similarly the x86 and x86_64 disassemblers now accept a command line option of "-M annotate-immediates" which displays the symbol associated with immediate values, should there be one.
* Objdump and readelf now have a --debug-dir=<DIR> option which can be used to tell them where to find separate debug info files.
* Objdump now has a --map-global-vars option which displays the location and type of global variables in object files.
* The bfd linker now has an optimization level of zero. Using "-O 0" on the linker command line will stop it from combining the contents of mergeable sections. This can significantly speed up the link process at the cost of producing larger binaries.
* Add linker support for --start-lib/--end-lib options and LIB linker script statement for treating a list of object files as members of an artificial archive.
* Add linker support for archives with no symbol index in their all formats, not only XCOFF. On by default and controlled with --no-link-mapless and --link-mapless options, also for XCOFF.
Note - support for the 32-bit s390 target has been deprecated with this release. Support for the 64-bit s390x target still works however."
As with previous new binutils versions, patches 0001 and 0002 were rebased and carried over to this version as well.
--- package/binutils/2.47/0001-sh-conf.patch | 53 +++ .../2.47/0002-poison-system-directories.patch | 314 ++++++++++++++++++ package/binutils/Config.in.host | 4 + package/binutils/binutils.hash | 1 + 4 files changed, 372 insertions(+) create mode 100644 package/binutils/2.47/0001-sh-conf.patch create mode 100644 package/binutils/2.47/0002-poison-system-directories.patch
package/binutils/2.47/0001-sh-conf.patch new file +53 -0
@@ -0,0 +1,53 @@ +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]> +[Brát: rebased for version 2.47] +Signed-off-by: Daniel Brát <[email protected]> +--- + configure | 2 +- + configure.ac | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure b/configure +index 4c2aa195810..f711e7f961e 100755 +--- a/configure ++++ b/configure +@@ -4197,7 +4197,7 @@ case "${target}" in + nvptx*-*-*) + noconfigdirs="$noconfigdirs target-libssp" + ;; +- sh-*-*) ++ sh*-*-*) + case "${target}" in + sh*-*-elf) + ;; +diff --git a/configure.ac b/configure.ac +index cae0042411b..54ca9863ee6 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1366,7 +1366,7 @@ case "${target}" in + nvptx*-*-*) + noconfigdirs="$noconfigdirs target-libssp" + ;; +- sh-*-*) ++ sh*-*-*) + case "${target}" in + sh*-*-elf) + ;; +-- +2.39.5
package/binutils/2.47/0002-poison-system-directories.patch new file +314 -0
314 lines not on this page · raw message
package/binutils/Config.in.host +4 -0
@@ -20,6 +20,9 @@ config BR2_BINUTILS_VERSION_2_45_X config BR2_BINUTILS_VERSION_2_46_X bool "binutils 2.46.1" +config BR2_BINUTILS_VERSION_2_47_X + bool "binutils 2.47" + endchoice config BR2_BINUTILS_VERSION
@@ -27,6 +30,7 @@ config BR2_BINUTILS_VERSION default "2.44" if BR2_BINUTILS_VERSION_2_44_X default "2.45.1" if BR2_BINUTILS_VERSION_2_45_X default "2.46.1" if BR2_BINUTILS_VERSION_2_46_X + default "2.47" if BR2_BINUTILS_VERSION_2_47_X config BR2_BINUTILS_GPROFNG bool "gprofng support"
package/binutils/binutils.hash +1 -0
@@ -2,6 +2,7 @@ sha512 b85d3bbc0e334cf67a96219d3c7c65fbf3e832b2c98a7417bf131f3645a0307057ec81cd2b29ff2563cec53e3d42f73e2c60cc5708e80d4a730efdcc6ae14ad7 binutils-2.44.tar.xz sha512 ea030419eba387579ab717be7e3223fc99e93b586860b06003c12489f93441640d4082736f76aa5e98233db4f46e232f536a45e471486de1f5b64e1b827c167e binutils-2.45.1.tar.xz sha512 a5c65e56e400ed3fb8906a995dbb93eb5bea54b16344244653d7f44ef29ceb60270da263b19d25302c37759784e14fcb4b9421b29e0e2c7f450bd99f6bb4595c binutils-2.46.1.tar.xz +sha512 3126a1064374d8da40d4d70630c204ed1e75d542c447d53fca9778c7ceff095c28e9b445e15a313fef9729082d7966471ee6b5b715d479aa6d568528743e1d98 binutils-2.47.tar.xz # locally computed sha256 231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c COPYING
Signature · 6 lines
2.39.5 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Daniel,
Thanks for the patch.
Quoted 50 lines · Daniel Brát
https://sourceware.org/pipermail/binutils/2026-July/150449.html
" This release contains numerous bug fixes, and also the
following new features:* A new assembler command line option:
--reloc-section-sym=[all|internal|none]
controls whether relocations referencing local binding symbols
are adjusted
to use section symbols.* Add support for RISC-V standard extensions:
zalasr v1.0, svrsw60t59b v1.0, zvabd v1.0, smpmpmt v1.0, zvqwdota8i, zvqwdota16i, zvfwdota16bf and zvfqwdota8f v1.0, zvqwbdota8i, zvqwbdota16i, zvfwbdota16bf, zvfqwbdota8f and zvfbdota32f v1.0, SpacemiT: xsmtvdot v1.0, xsmtvdotii v1.0.* The AArch64 disassembler now accepts a command line option of "-M annotate" which displays the symbol associated with undefined instructions, should there be one.
Similarly the x86 and
x86_64disassemblers now accept a command
line
option of "-M annotate-immediates" which displays the symbol associated with immediate values, should there be one.* Objdump and readelf now have a --debug-dir=<DIR> option which can
be
used to tell them where to find separate debug info files.* Objdump now has a --map-global-vars option which displays the location and type of global variables in object files.
* The bfd linker now has an optimization level of zero. Using "-O
0"
on the linker command line will stop it from combining the
contents
of mergeable sections. This can significantly speed up the link process at the cost of producing larger binaries.* Add linker support for --start-lib/--end-lib options and LIB
linker
script statement for treating a list of object files as members
of
an artificial archive.* Add linker support for archives with no symbol index in their all formats, not only XCOFF. On by default and controlled with --no-link-mapless and --link-mapless options, also for XCOFF.
Quoted 8 lines
Note - support for the 32-bit s390 target has been deprecated with this release. Support for the 64-bit s390x target still works however."
As with previous new binutils versions, patches 0001 and 0002 were rebased and carried over to this version as well.
Signed-off-by Daniel Brát <[email protected]>
Thanks for the patch.
In Buildroot, when we add a new binutils version series, we also usually increase the default version and remove the oldest version, in a single patch series.
See the package history for examples:
https://gitlab.com/buildroot.org/buildroot/-/commits/master/package/binutils
For that reason, I applied the series from Bernd,
proposed at:
https://lore.kernel.org/buildroot/[email protected]/T/#t
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot