binutils: Upgrade to 2.41 release
PATCH v2 1/1 binutils: Upgrade to 2.41 release
Fix build on 32bit arches with 64bit off_t defaults
Detailed changes [1]
[1] https://sourceware.org/pipermail/binutils/2023-July/128719.html
---
v2: Fix build on mingw and 64bit off_t on 32bit platforms
meta/conf/distro/include/tcmode-default.inc | 2 +-
.../{binutils-2.40.inc => binutils-2.41.inc} | 16 +-
....40.bb => binutils-cross-canadian_2.41.bb} | 0
...40.bb => binutils-cross-testsuite_2.41.bb} | 0
...s-cross_2.40.bb => binutils-cross_2.41.bb} | 0
...ssdk_2.40.bb => binutils-crosssdk_2.41.bb} | 0
...emory-access-when-an-accessing-a-zer.patch | 43 -
...s-crosssdk-Generate-relocatable-SDKs.patch | 8 +-
...o-not-generate-linker-script-directo.patch | 2 +-
...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 | 2 +-
...-system-directories-when-cross-linki.patch | 59 +-
...ect-assembling-for-ppc-wait-mnemonic.patch | 2 +-
.../binutils/0008-Use-libtool-2.4.patch | 4553 ++++++-----------
...h-in-libtool-when-sysroot-is-enabled.patch | 2 +-
.../0010-sync-with-OE-libtool-changes.patch | 2 +-
...or-clang-before-checking-gcc-version.patch | 2 +-
...-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch | 6 +-
...sing-_Alignof-when-using-C11-or-newe.patch | 2 +-
...pe-dll.o-entry-deom-targ_extra_ofil.patch} | 10 +-
...d-with-64bit-file-offset-on-32bit-ma.patch | 55 +
.../binutils/0016-CVE-2023-25586.patch | 34 -
.../binutils/binutils/fix-time64.patch | 94 -
.../{binutils_2.40.bb => binutils_2.41.bb} | 0
25 files changed, 1802 insertions(+), 3112 deletions(-)
rename meta/recipes-devtools/binutils/{binutils-2.40.inc => binutils-2.41.inc} (79%)
rename meta/recipes-devtools/binutils/{binutils-cross-canadian_2.40.bb => binutils-cross-canadian_2.41.bb} (100%)
rename meta/recipes-devtools/binutils/{binutils-cross-testsuite_2.40.bb => binutils-cross-testsuite_2.41.bb} (100%)
rename meta/recipes-devtools/binutils/{binutils-cross_2.40.bb => binutils-cross_2.41.bb} (100%)
rename meta/recipes-devtools/binutils/{binutils-crosssdk_2.40.bb => binutils-crosssdk_2.41.bb} (100%)
delete mode 100644 meta/recipes-devtools/binutils/binutils/0001-Fix-an-illegal-memory-access-when-an-accessing-a-zer.patch
rename meta/recipes-devtools/binutils/binutils/{0015-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch => 0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch} (81%)
create mode 100644 meta/recipes-devtools/binutils/binutils/0015-gprofng-Fix-build-with-64bit-file-offset-on-32bit-ma.patch
delete mode 100644 meta/recipes-devtools/binutils/binutils/0016-CVE-2023-25586.patch
delete mode 100644 meta/recipes-devtools/binutils/binutils/fix-time64.patch
rename meta/recipes-devtools/binutils/{binutils_2.40.bb => binutils_2.41.bb} (100%)meta/conf/distro/include/tcmode-default.inc +1 -1
@@ -18,7 +18,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext" GCCVERSION ?= "13.%" SDKGCCVERSION ?= "${GCCVERSION}" -BINUVERSION ?= "2.40%" +BINUVERSION ?= "2.41%" GDBVERSION ?= "13.%" GLIBCVERSION ?= "2.38" LINUXLIBCVERSION ?= "6.4%"
meta/recipes-devtools/binutils/binutils-2.41.inc renamed from meta/recipes-devtools/binutils/binutils-2.40.inc +7 -9
@@ -10,15 +10,15 @@ LIC_FILES_CHKSUM="\ file://bfd/COPYING;md5=d32239bcb673463ab874e80d47fae504\ " -# When upgrading to 2.41, please make sure there is no trailing .0, so +# When upgrading to 2.42, please make sure there is no trailing .0, so # that upstream version check can work correctly. -PV = "2.40" -CVE_VERSION = "2.40" -SRCBRANCH ?= "binutils-2_40-branch" +PV = "2.41" +CVE_VERSION = "2.41" +SRCBRANCH ?= "binutils-2_41-branch" UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)" -SRCREV ?= "4671be001eb5a899ecac3e2686a92934000f8262" +SRCREV ?= "fd3cc73ee4a84df3ace3c0e470250a957e7d3468" BINUTILS_GIT_URI ?= "git://sourceware.org/git/binutils-gdb.git;branch=${SRCBRANCH};protocol=https" SRC_URI = "\ ${BINUTILS_GIT_URI} \
@@ -32,9 +32,7 @@ SRC_URI = "\ file://0011-Check-for-clang-before-checking-gcc-version.patch \ 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://0015-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \ - file://0016-CVE-2023-25586.patch \ - file://fix-time64.patch \ - file://0001-Fix-an-illegal-memory-access-when-an-accessing-a-zer.patch \ + file://0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \ + file://0015-gprofng-Fix-build-with-64bit-file-offset-on-32bit-ma.patch \ " S = "${WORKDIR}/git"
meta/recipes-devtools/binutils/binutils-cross-canadian_2.41.bb renamed from meta/recipes-devtools/binutils/binutils-cross-canadian_2.40.bb +0 -0
meta/recipes-devtools/binutils/binutils-cross-testsuite_2.41.bb renamed from meta/recipes-devtools/binutils/binutils-cross-testsuite_2.40.bb +0 -0
meta/recipes-devtools/binutils/binutils-cross_2.41.bb renamed from meta/recipes-devtools/binutils/binutils-cross_2.40.bb +0 -0
meta/recipes-devtools/binutils/binutils-crosssdk_2.41.bb renamed from meta/recipes-devtools/binutils/binutils-crosssdk_2.40.bb +0 -0
meta/recipes-devtools/binutils/binutils/0001-Fix-an-illegal-memory-access-when-an-accessing-a-zer.patch deleted +0 -43
43 lines not on this page · raw message
meta/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch +4 -4
@@ -1,4 +1,4 @@ -From 4bdab425bdd7dc52c95bfd62e035c1b9abe9595e Mon Sep 17 00:00:00 2001 +From 95e23fba624c90d0e62c1adaf2bcc4f3cd3175c0 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,10 +21,10 @@ 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 899d4af0707..7c31b1bef6e 100644 +index b94855f8662..51f2d74d79d 100644 --- a/gold/layout.cc +++ b/gold/layout.cc -@@ -5083,7 +5083,7 @@ Layout::create_interp(const Target* target) +@@ -5102,7 +5102,7 @@ Layout::create_interp(const Target* target) gold_assert(interp != NULL); }
@@ -59,7 +59,7 @@ index 382bd07ffe2..9fbd0c4cb8a 100755 DATA_ALIGNMENT=${DATA_ALIGNMENT_} RELOCATING=" " diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc -index 5d3b0d31b1b..2163909cd56 100644 +index 1e3c5aa8504..b8d1977b3f0 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -148,8 +148,8 @@ if test -z "$DATA_SEGMENT_ALIGN"; then
meta/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch +1 -1
@@ -1,4 +1,4 @@ -From c79005d4d9991593557766ad569f48c26482399f Mon Sep 17 00:00:00 2001 +From 2b3017e7dab4d929d3ab664c5e6f94226b0a6d31 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
meta/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch +7 -7
@@ -1,4 +1,4 @@ -From 70da8b91026c5381d430194910fc15e3b6c5ec7f Mon Sep 17 00:00:00 2001 +From c00ead7264dc1335cb43222cb742b95614666be8 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 b3195b4be68..fc6460317a7 100644 +index c3adbb0ccad..ce0f7e7f85d 100644 --- a/ld/Makefile.am +++ b/ld/Makefile.am @@ -42,7 +42,8 @@ ZLIBINC = @zlibinc@
@@ -43,7 +43,7 @@ index b3195b4be68..fc6460317a7 100644 NO_WERROR = @NO_WERROR@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS) $(JANSSON_CFLAGS) $(ZSTD_CFLAGS) diff --git a/ld/Makefile.in b/ld/Makefile.in -index fe422569228..4a4c851b44a 100644 +index d1a56026437..9d86aed12c6 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -566,7 +566,8 @@ ZLIB = @zlibdir@ -lz
@@ -57,7 +57,7 @@ index fe422569228..4a4c851b44a 100644 AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS) $(JANSSON_CFLAGS) $(ZSTD_CFLAGS) diff --git a/ld/ldelf.c b/ld/ldelf.c -index eff6693e052..95787012b89 100644 +index f9a6819366f..1519f8ac4e5 100644 --- a/ld/ldelf.c +++ b/ld/ldelf.c @@ -936,7 +936,7 @@ ldelf_check_ld_so_conf (const struct bfd_link_needed_list *l, int force,
@@ -65,15 +65,15 @@ index eff6693e052..95787012b89 100644 info.path = NULL; info.len = info.alloc = 0; - tmppath = concat (ld_sysroot, prefix, "/etc/ld.so.conf", -+ tmppath = concat (ld_sysconfdir, "/etc/ld.so.conf", ++ tmppath = concat (ld_sysconfdir, "/ld.so.conf", (const char *) NULL); if (!ldelf_parse_ld_so_conf (&info, tmppath)) { diff --git a/ld/ldmain.c b/ld/ldmain.c -index 9290a189b0d..ceaca2d85d0 100644 +index 06ac2c64fa8..5c38e8cd313 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c -@@ -70,6 +70,7 @@ char *program_name; +@@ -69,6 +69,7 @@ char *program_name; /* The prefix for system library directories. */ const char *ld_sysroot;
meta/recipes-devtools/binutils/binutils/0004-Point-scripts-location-to-libdir.patch +3 -3
@@ -1,4 +1,4 @@ -From fa477bb947fa17543f4550bc0e7e715c8355649c Mon Sep 17 00:00:00 2001 +From d2d1281b0b76f96c64a2043772c52c85f58994d5 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 fc6460317a7..1b875904b8d 100644 +index ce0f7e7f85d..2e36ab4efc4 100644 --- a/ld/Makefile.am +++ b/ld/Makefile.am @@ -51,7 +51,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS) $(JANSSON_CFLAGS) $(ZSTD_CFLAGS)
@@ -25,7 +25,7 @@ index fc6460317a7..1b875904b8d 100644 EMUL = @EMUL@ EMULATION_OFILES = @EMULATION_OFILES@ diff --git a/ld/Makefile.in b/ld/Makefile.in -index 4a4c851b44a..08dcd7b75fc 100644 +index 9d86aed12c6..c21c554e432 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -574,7 +574,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS) $(JANSSON_CFLAGS) $(ZSTD_CFLAGS)
meta/recipes-devtools/binutils/binutils/0005-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch +1 -1
@@ -1,4 +1,4 @@ -From 7912f5a918e612950feb04d845934f26160e85da Mon Sep 17 00:00:00 2001 +From 5564cdf1433255a00acb427fb5b0656b772b2651 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
meta/recipes-devtools/binutils/binutils/0006-warn-for-uses-of-system-directories-when-cross-linki.patch +29 -30
140 lines not on this page · raw message
meta/recipes-devtools/binutils/binutils/0007-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch +1 -1
@@ -1,4 +1,4 @@ -From 4e9d4ace8a340399aeaa8332e2cfbfcc7d2d14d7 Mon Sep 17 00:00:00 2001 +From 7f04e82ac2ded9a7f68dba9fabf1251d680bd0b9 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
meta/recipes-devtools/binutils/binutils/0008-Use-libtool-2.4.patch +1681 -2872
2,670 lines not on this page · raw message
meta/recipes-devtools/binutils/binutils/0009-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch +1 -1
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/binutils/binutils/0010-sync-with-OE-libtool-changes.patch +1 -1
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 +1 -1
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 +3 -3
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 +1 -1
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 renamed from meta/recipes-devtools/binutils/binutils/0015-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch +5 -5
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/binutils/binutils/0015-gprofng-Fix-build-with-64bit-file-offset-on-32bit-ma.patch new file +55 -0
55 lines not on this page · raw message
meta/recipes-devtools/binutils/binutils/0016-CVE-2023-25586.patch deleted +0 -34
Lines of this file are not shown. View the raw message.
meta/recipes-devtools/binutils/binutils/fix-time64.patch deleted +0 -94
94 lines not on this page · raw message
meta/recipes-devtools/binutils/binutils_2.41.bb renamed from meta/recipes-devtools/binutils/binutils_2.40.bb +0 -0
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.41.0
Part of the diff is not shown here. View the raw message.