Skip to contentSkip to conversation

binutils: Upgrade to 2.44 release

PATCH New Khem Raj 1 participant 1 message Feb 2, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 binutils: Upgrade to 2.44 release

* Drop the CVE-2024-53589 patch, its included in 2.44
* Package newly rename gp-* to gprofng-* binaries and remove old gp-* symlinks

* Gold linker is now deprecated and will be removed in future release its already deleted in tarball releases

* Support for the Nios II target has been removed.

* Assembler:
- Support for new architecture extensions for AArch64, Risc-V and x86.

* Linker:
The default maximum page size was changed from 16KiB to 64KiB for LoongArch.

This now supports mixed LTO and non-LTO object files in relocatable output.

The ELF forms of the linker support a --image-base=<ADDR> option for compatibility with LLD.

The --build-id= option now accepts an argument of "xx" which enables the use of the xxhash library. This produces a 128-bit hash and is 2-4x faster than md5 or sha1.

The ELF linker option --package-metadata supports percent-encoded and %[string] encoded JSON payloads.

* Disassembler:
The RISC-V disassembler now supports -M,max option like QEMU to dump instruction without checking architecture support as usual.

* GprofNG:
Support added for hardware event counters for Neoverse-N1, Ampere-1, and Appliedmicro processors.

Detailed release notes [1]

[1] https://lists.gnu.org/archive/html/info-gnu/2025-02/msg00001.html

---
 meta/conf/distro/include/tcmode-default.inc   |   2 +-
 ...{binutils-2.43.1.inc => binutils-2.44.inc} |   9 +-
 ...3.1.bb => binutils-cross-canadian_2.44.bb} |   0
 ...cross_2.43.1.bb => binutils-cross_2.44.bb} |   0
 ...dk_2.43.1.bb => binutils-crosssdk_2.44.bb} |   0
 ...e_2.43.1.bb => binutils-testsuite_2.44.bb} |   0
 meta/recipes-devtools/binutils/binutils.inc   |  14 +-
 ...s-crosssdk-Generate-relocatable-SDKs.patch |  14 +-
 ...o-not-generate-linker-script-directo.patch |   4 +-
 ...dk-Search-for-alternative-ld.so.conf.patch |  14 +-
 ...004-Point-scripts-location-to-libdir.patch |   6 +-
 ...stro-compiler-point-to-the-wrong-ins.patch |   4 +-
 ...-system-directories-when-cross-linki.patch |  61 +-
 ...ect-assembling-for-ppc-wait-mnemonic.patch |   4 +-
 .../binutils/0008-Use-libtool-2.4.patch       | 820 +++++++++---------
 ...h-in-libtool-when-sysroot-is-enabled.patch |   8 +-
 .../0010-sync-with-OE-libtool-changes.patch   |  10 +-
 ...or-clang-before-checking-gcc-version.patch |  10 +-
 ...-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch |   8 +-
 ...sing-_Alignof-when-using-C11-or-newe.patch |   4 +-
 ...-pe-dll.o-entry-deom-targ_extra_ofil.patch |   6 +-
 .../binutils/0015-CVE-2024-53589.patch        |  92 --
 .../{binutils_2.43.1.bb => binutils_2.44.bb}  |   2 +-
 23 files changed, 492 insertions(+), 600 deletions(-)
 rename meta/recipes-devtools/binutils/{binutils-2.43.1.inc => binutils-2.44.inc} (91%)
 rename meta/recipes-devtools/binutils/{binutils-cross-canadian_2.43.1.bb => binutils-cross-canadian_2.44.bb} (100%)
 rename meta/recipes-devtools/binutils/{binutils-cross_2.43.1.bb => binutils-cross_2.44.bb} (100%)
 rename meta/recipes-devtools/binutils/{binutils-crosssdk_2.43.1.bb => binutils-crosssdk_2.44.bb} (100%)
 rename meta/recipes-devtools/binutils/{binutils-testsuite_2.43.1.bb => binutils-testsuite_2.44.bb} (100%)
 delete mode 100644 meta/recipes-devtools/binutils/binutils/0015-CVE-2024-53589.patch
 rename meta/recipes-devtools/binutils/{binutils_2.43.1.bb => binutils_2.44.bb} (97%)
meta/conf/distro/include/tcmode-default.inc +1 -1
index 926bf0ff572..6affa6d7184 100644
@@ -22,7 +22,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
 
 GCCVERSION ?= "14.%"
 SDKGCCVERSION ?= "${GCCVERSION}"
-BINUVERSION ?= "2.43%"
+BINUVERSION ?= "2.44%"
 GDBVERSION ?= "16.%"
 GLIBCVERSION ?= "2.41%"
 LINUXLIBCVERSION ?= "6.12%"
meta/recipes-devtools/binutils/binutils-2.44.inc renamed from meta/recipes-devtools/binutils/binutils-2.43.1.inc +4 -5
similarity index 91%
rename from meta/recipes-devtools/binutils/binutils-2.43.1.inc
rename to meta/recipes-devtools/binutils/binutils-2.44.inc
index daaae775450..76986964094 100644
@@ -12,15 +12,15 @@ 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.43.1"
-CVE_VERSION = "2.43.1"
-SRCBRANCH ?= "binutils-2_43-branch"
+PV = "2.44"
+CVE_VERSION = "2.44"
+SRCBRANCH ?= "binutils-2_44-branch"
 
 UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)"
 
 CVE_STATUS[CVE-2023-25584] = "cpe-incorrect: Applies only for version 2.40 and earlier"
 
-SRCREV ?= "b82e2250574ef00faf7fcb1e95e14f22b1fa85af"
+SRCREV ?= "815d9a14cbbb3b81843f7566222c87fb22e7255d"
 BINUTILS_GIT_URI ?= "git://sourceware.org/git/binutils-gdb.git;branch=${SRCBRANCH};protocol=https"
 SRC_URI = "\
      ${BINUTILS_GIT_URI} \
@@ -35,6 +35,5 @@ SRC_URI = "\
      file://0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch \
      file://0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch \
      file://0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \
-     file://0015-CVE-2024-53589.patch \
 "
 S  = "${WORKDIR}/git"
meta/recipes-devtools/binutils/binutils-cross-canadian_2.44.bb renamed from meta/recipes-devtools/binutils/binutils-cross-canadian_2.43.1.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/binutils/binutils-cross-canadian_2.43.1.bb
rename to meta/recipes-devtools/binutils/binutils-cross-canadian_2.44.bb
meta/recipes-devtools/binutils/binutils-cross_2.44.bb renamed from meta/recipes-devtools/binutils/binutils-cross_2.43.1.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/binutils/binutils-cross_2.43.1.bb
rename to meta/recipes-devtools/binutils/binutils-cross_2.44.bb
meta/recipes-devtools/binutils/binutils-crosssdk_2.44.bb renamed from meta/recipes-devtools/binutils/binutils-crosssdk_2.43.1.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/binutils/binutils-crosssdk_2.43.1.bb
rename to meta/recipes-devtools/binutils/binutils-crosssdk_2.44.bb
meta/recipes-devtools/binutils/binutils-testsuite_2.44.bb renamed from meta/recipes-devtools/binutils/binutils-testsuite_2.43.1.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/binutils/binutils-testsuite_2.43.1.bb
rename to meta/recipes-devtools/binutils/binutils-testsuite_2.44.bb
meta/recipes-devtools/binutils/binutils.inc +9 -5
index e1b903f1ebf..81443105f69 100644
@@ -39,11 +39,11 @@ FILES:${PN}-staticdev += "${libdir}/gprofng/*.a"
 # list and reuse it.
 
 GPROFNGS = " \
-	gp-archive \
-	gp-collect-app \
-	gp-display-html \
-	gp-display-src \
-	gp-display-text \
+	gprofng-archive \
+	gprofng-collect-app \
+	gprofng-display-html \
+	gprofng-display-src \
+	gprofng-display-text \
 	gprofng \
 "
 
@@ -191,6 +191,10 @@ do_install () {
 	for alt in ${USE_ALTERNATIVES_FOR}; do
 		rm -f ${D}${bindir}/$alt
 	done
+	# remove old pre 2.44 release gprofng binary names
+	for f in gp-archive gp-collect-app gp-display-html gp-display-src gp-display-text; do
+		rm -f ${D}${bindir}/$f
+	done
 
 	oe_multilib_header bfd.h
 }
meta/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch +7 -7
index 3dd559e3961..2443897cad1 100644
@@ -1,4 +1,4 @@
-From 56d41f0cc6a806d2e8d7dcbfb4cca4cd37fba835 Mon Sep 17 00:00:00 2001
+From df3faaf0a09fd828330d3bac45782868a04f7bc0 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:58:54 +0000
 Subject: [PATCH] binutils-crosssdk: Generate relocatable SDKs
@@ -21,7 +21,7 @@ Signed-off-by: Khem Raj <[email protected]>
  3 files changed, 6 insertions(+), 3 deletions(-)
 
 diff --git a/gold/layout.cc b/gold/layout.cc
-index b43ae841a6c..6101a95195b 100644
+index f690c67618e..9ded8368482 100644
 --- a/gold/layout.cc
 +++ b/gold/layout.cc
 @@ -5102,7 +5102,7 @@ Layout::create_interp(const Target* target)
@@ -34,7 +34,7 @@ index b43ae841a6c..6101a95195b 100644
    Output_section_data* odata = new Output_data_const(interp, len, 1);
  
 diff --git a/ld/genscripts.sh b/ld/genscripts.sh
-index a726b158161..5d2eb737efc 100755
+index 77a1fb465ad..5b51c23e141 100755
 --- a/ld/genscripts.sh
 +++ b/ld/genscripts.sh
 @@ -315,6 +315,7 @@ DATA_ALIGNMENT_u="${DATA_ALIGNMENT_u-${DATA_ALIGNMENT_r}}"
@@ -59,17 +59,17 @@ index a726b158161..5d2eb737efc 100755
  DATA_ALIGNMENT=${DATA_ALIGNMENT_}
  RELOCATING=" "
 diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
-index 54716110b61..da17fe5cbce 100644
+index be8d19fcf11..26ecd6dff80 100644
 --- a/ld/scripttempl/elf.sc
 +++ b/ld/scripttempl/elf.sc
-@@ -152,8 +152,8 @@ if test -z "$DATA_SEGMENT_ALIGN"; then
-     DATA_SEGMENT_RELRO_END=". = DATA_SEGMENT_RELRO_END (${SEPARATE_GOTPLT-0}, .);"
+@@ -197,8 +197,8 @@ if test -z "$DATA_SEGMENT_ALIGN"; then
    fi
  fi
+ 
 -if test -z "${INITIAL_READONLY_SECTIONS}${CREATE_SHLIB}"; then
 -  INITIAL_READONLY_SECTIONS=".interp       ${RELOCATING-0} : { *(.interp) }"
 +if test -z "${INITIAL_READONLY_SECTIONS}${CREATE_SHLIB}${PARTIAL_LINKING}"; then
 +  INITIAL_READONLY_SECTIONS=".interp       ${RELOCATING-0} : { *(.interp); . = 0x1000; }"
  fi
+ 
  if test -z "$PLT"; then
-   IPLT=".iplt         ${RELOCATING-0} : { *(.iplt) }"
meta/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch +2 -2
index 3ad1da38e6b..20459fce663 100644
@@ -1,4 +1,4 @@
-From 4f2a54c468c448efdd44813273893ec9c541deaf Mon Sep 17 00:00:00 2001
+From 3105d7ecc3f16d66c19985a6557cd1e9becfab55 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 6 Mar 2017 23:37:05 -0800
 Subject: [PATCH] binutils-cross: Do not generate linker script directories
@@ -22,7 +22,7 @@ Signed-off-by: Khem Raj <[email protected]>
  1 file changed, 25 deletions(-)
 
 diff --git a/ld/genscripts.sh b/ld/genscripts.sh
-index 5d2eb737efc..ad225b0071d 100755
+index 5b51c23e141..5d2c54706f8 100755
 --- a/ld/genscripts.sh
 +++ b/ld/genscripts.sh
 @@ -244,31 +244,6 @@ append_to_lib_path()
meta/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch +7 -7
index ec8e40c132e..374fbd6f413 100644
@@ -1,4 +1,4 @@
-From bbb86582536ba9e4ab0fb4656d4697542172ab78 Mon Sep 17 00:00:00 2001
+From d718e17e1668880a85ff05993f0027d9c9ad6935 Mon Sep 17 00:00:00 2001
 From: Richard Purdie <[email protected]>
 Date: Wed, 19 Feb 2020 09:51:16 -0800
 Subject: [PATCH] binutils-nativesdk: Search for alternative ld.so.conf in SDK
@@ -29,7 +29,7 @@ Signed-off-by: Khem Raj <[email protected]>
  5 files changed, 7 insertions(+), 3 deletions(-)
 
 diff --git a/ld/Makefile.am b/ld/Makefile.am
-index 6a9833e5775..b2776d2a1f3 100644
+index ccff9289924..cf2c29e89a3 100644
 --- a/ld/Makefile.am
 +++ b/ld/Makefile.am
 @@ -42,7 +42,8 @@ ZLIBINC = @zlibinc@
@@ -43,7 +43,7 @@ index 6a9833e5775..b2776d2a1f3 100644
  NO_WERROR = @NO_WERROR@
  AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CFLAGS) $(JANSSON_CFLAGS) $(ZSTD_CFLAGS)
 diff --git a/ld/Makefile.in b/ld/Makefile.in
-index 8639e782cdf..19c19088724 100644
+index 3e24bd4deb2..23d4f1f3132 100644
 --- a/ld/Makefile.in
 +++ b/ld/Makefile.in
 @@ -576,7 +576,8 @@ ZLIB = @zlibdir@ -lz
@@ -57,10 +57,10 @@ index 8639e782cdf..19c19088724 100644
  AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CFLAGS) $(JANSSON_CFLAGS) $(ZSTD_CFLAGS)
  
 diff --git a/ld/ldelf.c b/ld/ldelf.c
-index 09691609fc0..e49c0217ae2 100644
+index 4a1aa044e70..f6f3ac11a76 100644
 --- a/ld/ldelf.c
 +++ b/ld/ldelf.c
-@@ -939,7 +939,7 @@ ldelf_check_ld_so_conf (const struct bfd_link_needed_list *l, int force,
+@@ -943,7 +943,7 @@ ldelf_check_ld_so_conf (const struct bfd_link_needed_list *l, int force,
  
        info.path = NULL;
        info.len = info.alloc = 0;
@@ -70,7 +70,7 @@ index 09691609fc0..e49c0217ae2 100644
        if (!ldelf_parse_ld_so_conf (&info, tmppath))
  	{
 diff --git a/ld/ldmain.c b/ld/ldmain.c
-index 037099b9d37..2f500d73c58 100644
+index f1c5f7035c5..cce4991b25a 100644
 --- a/ld/ldmain.c
 +++ b/ld/ldmain.c
 @@ -69,6 +69,7 @@ char *program_name;
@@ -82,7 +82,7 @@ index 037099b9d37..2f500d73c58 100644
  /* The canonical representation of ld_sysroot.  */
  char *ld_canon_sysroot;
 diff --git a/ld/ldmain.h b/ld/ldmain.h
-index 0238aed0ebd..2dd00db13b3 100644
+index 0baa3c305c3..899c4b591c6 100644
 --- a/ld/ldmain.h
 +++ b/ld/ldmain.h
 @@ -23,6 +23,7 @@
meta/recipes-devtools/binutils/binutils/0004-Point-scripts-location-to-libdir.patch +3 -3
index 572c2e840ba..8a24408f4ff 100644
@@ -1,4 +1,4 @@
-From aa371816a7ad55af4b29ffc32b213a812f4c6216 Mon Sep 17 00:00:00 2001
+From 0ff4f23d3521a45835eaa03731c0b3351a50d8ba Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:09:58 +0000
 Subject: [PATCH] Point scripts location to libdir
@@ -12,7 +12,7 @@ Signed-off-by: Khem Raj <[email protected]>
  2 files changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/ld/Makefile.am b/ld/Makefile.am
-index b2776d2a1f3..76ebecb5685 100644
+index cf2c29e89a3..0a6eaada129 100644
 --- a/ld/Makefile.am
 +++ b/ld/Makefile.am
 @@ -51,7 +51,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CFLAGS) $(JANSSON_CFLAGS) $(ZSTD_CFLAGS)
@@ -25,7 +25,7 @@ index b2776d2a1f3..76ebecb5685 100644
  EMUL = @EMUL@
  EMULATION_OFILES = @EMULATION_OFILES@
 diff --git a/ld/Makefile.in b/ld/Makefile.in
-index 19c19088724..4be38a75feb 100644
+index 23d4f1f3132..c3d08edbef1 100644
 --- a/ld/Makefile.in
 +++ b/ld/Makefile.in
 @@ -584,7 +584,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CFLAGS) $(JANSSON_CFLAGS) $(ZSTD_CFLAGS)
meta/recipes-devtools/binutils/binutils/0005-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch +2 -2
index 2b1d57a05ed..4a1cd34f29d 100644
@@ -1,4 +1,4 @@
-From cf20233a1d53effa223a8b72ae9c0652a472a87a Mon Sep 17 00:00:00 2001
+From 340d2cf058b373ed4fbf6bcea4f6674eab23c73a Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:39:01 +0000
 Subject: [PATCH] don't let the distro compiler point to the wrong installation
@@ -17,7 +17,7 @@ Signed-off-by: Khem Raj <[email protected]>
  1 file changed, 2 insertions(+), 1 deletion(-)
 
 diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in
-index b77a41c781c..9fb4d6f09c9 100644
+index b11df756b4b..f47269fdc0e 100644
 --- a/libiberty/Makefile.in
 +++ b/libiberty/Makefile.in
 @@ -385,7 +385,8 @@ install-strip: install
meta/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch +31 -30

166 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/0007-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch +2 -2
index 7144b7d18de..7101219bf44 100644
@@ -1,4 +1,4 @@
-From bfc643d4044dccc917549f2db439cff165512b02 Mon Sep 17 00:00:00 2001
+From de07998ce2189c329220a76feb073438c4ec88f5 Mon Sep 17 00:00:00 2001
 From: Zhenhua Luo <[email protected]>
 Date: Sat, 11 Jun 2016 22:08:29 -0500
 Subject: [PATCH] fix the incorrect assembling for ppc wait mnemonic
@@ -14,7 +14,7 @@ Signed-off-by: Zhenhua Luo <[email protected]>
  1 file changed, 1 insertion(+), 3 deletions(-)
 
 diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c
-index e55bfe846cd..66b37e36e6f 100644
+index aa4484ef9ab..81b6a4c2db9 100644
 --- a/opcodes/ppc-opc.c
 +++ b/opcodes/ppc-opc.c
 @@ -7138,8 +7138,6 @@ const struct powerpc_opcode powerpc_opcodes[] = {
meta/recipes-devtools/binutils/binutils/0008-Use-libtool-2.4.patch +400 -420

2,624 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/0009-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch +4 -4
index 72015134534..18f1e90aade 100644

Lines of this file are not shown. View the raw message.

meta/recipes-devtools/binutils/binutils/0010-sync-with-OE-libtool-changes.patch +5 -5
index 0564980c13c..fb1463c4e21 100644

Lines of this file are not shown. View the raw message.

meta/recipes-devtools/binutils/binutils/0011-Check-for-clang-before-checking-gcc-version.patch +5 -5
index 728dee0908c..ddba0c33b63 100644

Lines of this file are not shown. View the raw message.

meta/recipes-devtools/binutils/binutils/0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch +4 -4
index aaf90d25b7d..9abd85538fb 100644

Lines of this file are not shown. View the raw message.

meta/recipes-devtools/binutils/binutils/0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch +2 -2
index 5027f0c6a5d..b075d9c58ba 100644

Lines of this file are not shown. View the raw message.

meta/recipes-devtools/binutils/binutils/0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch +3 -3
index 2c38aeccdaf..411994b3427 100644

Lines of this file are not shown. View the raw message.

meta/recipes-devtools/binutils/binutils/0015-CVE-2024-53589.patch deleted +0 -92

92 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils_2.44.bb renamed from meta/recipes-devtools/binutils/binutils_2.43.1.bb +1 -1
similarity index 97%
rename from meta/recipes-devtools/binutils/binutils_2.43.1.bb
rename to meta/recipes-devtools/binutils/binutils_2.44.bb
index 8594db9bfb5..99b5ce178de 100644

Lines of this file are not shown. View the raw message.

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

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