Skip to contentSkip to conversation

binutils: Upgrade to 2.37 branch

PATCH In review Khem Raj 2 participants 5 messages Jul 21, 2021 – Jul 23, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/1 binutils: Upgrade to 2.37 branch

This is next/latest release branch for binutils
Drop backports and CVE fixes which already are applied upstream

bfd_stdint.h has been removed in favor of using stdint.h

---
V2: Fixes SDK builds for mingw and glew build with GLES

 meta/conf/distro/include/tcmode-default.inc   |    2 +-
 .../{binutils-2.36.inc => binutils-2.37.inc}  |   11 +-
 ....36.bb => binutils-cross-canadian_2.37.bb} |    0
 ...36.bb => binutils-cross-testsuite_2.37.bb} |    4 -
 ...s-cross_2.36.bb => binutils-cross_2.37.bb} |    0
 ...ssdk_2.36.bb => binutils-crosssdk_2.37.bb} |    0
 meta/recipes-devtools/binutils/binutils.inc   |    2 -
 ...s-crosssdk-Generate-relocatable-SDKs.patch |    2 +-
 ...o-not-generate-linker-script-directo.patch |    2 +-
 ...dk-Search-for-alternative-ld.so.conf.patch |   14 +-
 ...iden-the-regexp-for-SH-architectures.patch |   10 +-
 ...005-Point-scripts-location-to-libdir.patch |    8 +-
 ...-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch |    8 +-
 ...stro-compiler-point-to-the-wrong-ins.patch |    4 +-
 ...-system-directories-when-cross-linki.patch |   84 +-
 ...e-default-emulation-for-mips64-linux.patch |   10 +-
 .../0010-Add-support-for-Netlogic-XLP.patch   |  119 +-
 ...ect-assembling-for-ppc-wait-mnemonic.patch |   16 +-
 .../0012-Detect-64-bit-MIPS-targets.patch     |    2 +-
 .../binutils/0013-Use-libtool-2.4.patch       | 2017 +++++++++--------
 ...h-in-libtool-when-sysroot-is-enabled.patch |    2 +-
 .../0015-sync-with-OE-libtool-changes.patch   |    2 +-
 ...or-clang-before-checking-gcc-version.patch |   10 +-
 ...the-DW_FORM_strx-forms-to-the-BFD-li.patch |  183 --
 .../0018-Add-DWARF-5-support-in-gold.patch    | 1374 -----------
 .../binutils/binutils/CVE-2021-20197.patch    |  388 ----
 .../{binutils_2.36.bb => binutils_2.37.bb}    |    0
 27 files changed, 1281 insertions(+), 2993 deletions(-)
 rename meta/recipes-devtools/binutils/{binutils-2.36.inc => binutils-2.37.inc} (85%)
 rename meta/recipes-devtools/binutils/{binutils-cross-canadian_2.36.bb => binutils-cross-canadian_2.37.bb} (100%)
 rename meta/recipes-devtools/binutils/{binutils-cross-testsuite_2.36.bb => binutils-cross-testsuite_2.37.bb} (94%)
 rename meta/recipes-devtools/binutils/{binutils-cross_2.36.bb => binutils-cross_2.37.bb} (100%)
 rename meta/recipes-devtools/binutils/{binutils-crosssdk_2.36.bb => binutils-crosssdk_2.37.bb} (100%)
 delete mode 100644 meta/recipes-devtools/binutils/binutils/0017-Add-support-for-the-DW_FORM_strx-forms-to-the-BFD-li.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/0018-Add-DWARF-5-support-in-gold.patch
 delete mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2021-20197.patch
 rename meta/recipes-devtools/binutils/{binutils_2.36.bb => binutils_2.37.bb} (100%)
meta/conf/distro/include/tcmode-default.inc +1 -1
index 55a0abe69d..31e54e824b 100644
@@ -18,7 +18,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
 
 GCCVERSION ?= "11.%"
 SDKGCCVERSION ?= "${GCCVERSION}"
-BINUVERSION ?= "2.36%"
+BINUVERSION ?= "2.37%"
 GDBVERSION ?= "10.%"
 GLIBCVERSION ?= "2.34"
 LINUXLIBCVERSION ?= "5.13%"
meta/recipes-devtools/binutils/binutils-2.37.inc renamed from meta/recipes-devtools/binutils/binutils-2.36.inc +4 -7
similarity index 85%
rename from meta/recipes-devtools/binutils/binutils-2.36.inc
rename to meta/recipes-devtools/binutils/binutils-2.37.inc
index d54e2a3457..4218c0a616 100644
@@ -12,13 +12,13 @@ LIC_FILES_CHKSUM="\
 
 # When upgrading to 2.37, please make sure there is no trailing .0, so
 # that upstream version check can work correctly.
-PV = "2.36.1"
-CVE_VERSION = "2.36.1"
-SRCBRANCH ?= "binutils-2_36-branch"
+PV = "2.37"
+CVE_VERSION = "2.37"
+SRCBRANCH ?= "binutils-2_37-branch"
 
 UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)"
 
-SRCREV ?= "7651a4871c225925ffdfda0a8c91a6ed370cd9a1"
+SRCREV ?= "87d4632d36323091e731eb07b8aa65f90293da66"
 BINUTILS_GIT_URI ?= "git://sourceware.org/git/binutils-gdb.git;branch=${SRCBRANCH};protocol=git"
 SRC_URI = "\
      ${BINUTILS_GIT_URI} \
@@ -35,8 +35,5 @@ SRC_URI = "\
      file://0014-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch \
      file://0015-sync-with-OE-libtool-changes.patch \
      file://0016-Check-for-clang-before-checking-gcc-version.patch \
-     file://0017-Add-support-for-the-DW_FORM_strx-forms-to-the-BFD-li.patch \
-     file://0018-Add-DWARF-5-support-in-gold.patch \
-     file://CVE-2021-20197.patch \
 "
 S  = "${WORKDIR}/git"
meta/recipes-devtools/binutils/binutils-cross-canadian_2.37.bb renamed from meta/recipes-devtools/binutils/binutils-cross-canadian_2.36.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/binutils/binutils-cross-canadian_2.36.bb
rename to meta/recipes-devtools/binutils/binutils-cross-canadian_2.37.bb
meta/recipes-devtools/binutils/binutils-cross-testsuite_2.37.bb renamed from meta/recipes-devtools/binutils/binutils-cross-testsuite_2.36.bb +0 -4
similarity index 94%
rename from meta/recipes-devtools/binutils/binutils-cross-testsuite_2.36.bb
rename to meta/recipes-devtools/binutils/binutils-cross-testsuite_2.37.bb
index 07a8e7c417..ca99e91130 100644
@@ -15,9 +15,6 @@ do_configure[dirs] += "${B}/ld ${B}/bfd"
 do_configure() {
     # create config.h, oe enables initfini-array by default
     echo "#define HAVE_INITFINI_ARRAY" > ${B}/ld/config.h
-    # use the bfd_stdint.h from binutils-native, this is the same of the one
-    # generated by binutils-cross
-    cp ${RECIPE_SYSROOT_NATIVE}/usr/include/bfd_stdint.h ${B}/bfd/
 }
 
 # target depends
@@ -82,4 +79,3 @@ do_check() {
     done
 }
 addtask check after do_configure
-
meta/recipes-devtools/binutils/binutils-cross_2.37.bb renamed from meta/recipes-devtools/binutils/binutils-cross_2.36.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/binutils/binutils-cross_2.36.bb
rename to meta/recipes-devtools/binutils/binutils-cross_2.37.bb
meta/recipes-devtools/binutils/binutils-crosssdk_2.37.bb renamed from meta/recipes-devtools/binutils/binutils-crosssdk_2.36.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/binutils/binutils-crosssdk_2.36.bb
rename to meta/recipes-devtools/binutils/binutils-crosssdk_2.37.bb
meta/recipes-devtools/binutils/binutils.inc +0 -2
index 81891963c8..e15a12b93e 100644
@@ -170,8 +170,6 @@ do_install () {
 	done
 
 	oe_multilib_header bfd.h
-        # bfd_stdint.h encodes the compiler name in the header
-        sed -i ${D}${includedir}/bfd_stdint.h -e "s,${TARGET_PREFIX},,"
 }
 
 inherit update-alternatives
meta/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch +1 -1
index 49dacfef81..53e30a0aaa 100644
@@ -1,4 +1,4 @@
-From 3b278a56a0e98d50ec62735598ee5f4b1834e8b3 Mon Sep 17 00:00:00 2001
+From 257ad1ce148417e1cefe2332d8acc5c8216c2522 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
meta/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch +1 -1
index d07947404f..a6ca41374a 100644
@@ -1,4 +1,4 @@
-From cf4c8a97b7dc1fe36a7d5dabed417fe18b15ad6b Mon Sep 17 00:00:00 2001
+From 6e93d0328f499569db7ce6396f94f304ce340df8 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
index cc37d30c53..3c4f706f2d 100644
@@ -1,4 +1,4 @@
-From 9701cab0fdf6a0c011978ae140c4c12a962956f6 Mon Sep 17 00:00:00 2001
+From d49016d3faf684319bf3ac37450558920d70be03 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 2c9a487335c..3b01357b651 100644
+index f8e99325361..fd196541f59 100644
 --- a/ld/Makefile.am
 +++ b/ld/Makefile.am
 @@ -42,7 +42,8 @@ ZLIBINC = @zlibinc@
@@ -43,10 +43,10 @@ index 2c9a487335c..3b01357b651 100644
  NO_WERROR = @NO_WERROR@
  AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
 diff --git a/ld/Makefile.in b/ld/Makefile.in
-index b41941c89e2..a6382bf2a45 100644
+index ef2e99e08da..cb8f5bfb70e 100644
 --- a/ld/Makefile.in
 +++ b/ld/Makefile.in
-@@ -554,7 +554,8 @@ ZLIB = @zlibdir@ -lz
+@@ -555,7 +555,8 @@ ZLIB = @zlibdir@ -lz
  ZLIBINC = @zlibinc@
  ELF_CLFAGS = -DELF_LIST_OPTIONS=@elf_list_options@ \
  	   -DELF_SHLIB_LIST_OPTIONS=@elf_shlib_list_options@ \
@@ -57,7 +57,7 @@ index b41941c89e2..a6382bf2a45 100644
  AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
 
 diff --git a/ld/ldelf.c b/ld/ldelf.c
-index f7407ab55a7..b25781cc0c4 100644
+index 21e655bb55c..d1615003ede 100644
 --- a/ld/ldelf.c
 +++ b/ld/ldelf.c
 @@ -911,7 +911,7 @@ ldelf_check_ld_so_conf (const struct bfd_link_needed_list *l, int force,
@@ -70,7 +70,7 @@ index f7407ab55a7..b25781cc0c4 100644
        if (!ldelf_parse_ld_so_conf (&info, tmppath))
  	{
 diff --git a/ld/ldmain.c b/ld/ldmain.c
-index 863df0293ea..080b1c4c6c2 100644
+index 42660eb9a3c..5a4a4d5da3d 100644
 --- a/ld/ldmain.c
 +++ b/ld/ldmain.c
 @@ -70,6 +70,7 @@ char *program_name;
@@ -82,7 +82,7 @@ index 863df0293ea..080b1c4c6c2 100644
  /* The canonical representation of ld_sysroot.  */
  char *ld_canon_sysroot;
 diff --git a/ld/ldmain.h b/ld/ldmain.h
-index 38e63922d31..0966914938c 100644
+index 39d08a6c378..4c3519e7970 100644
 --- a/ld/ldmain.h
 +++ b/ld/ldmain.h
 @@ -23,6 +23,7 @@
meta/recipes-devtools/binutils/binutils/0004-configure-widen-the-regexp-for-SH-architectures.patch +5 -5
index 1cd459ae81..f476ff210f 100644
@@ -1,4 +1,4 @@
-From 7e7512c82402363688cca6f1febea2c01cb03409 Mon Sep 17 00:00:00 2001
+From b8d43b6b8d98e176346871c92935458b06598c5b Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:07:33 +0000
 Subject: [PATCH] configure: widen the regexp for SH architectures
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <[email protected]>
  2 files changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/configure b/configure
-index 68779feb42b..7b369071141 100755
+index 3dd206525a7..e8ba1a1d3de 100755
 --- a/configure
 +++ b/configure
-@@ -3887,7 +3887,7 @@ case "${target}" in
+@@ -3892,7 +3892,7 @@ case "${target}" in
    nvptx*-*-*)
      noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
      ;;
@@ -27,10 +27,10 @@ index 68779feb42b..7b369071141 100755
        sh*-*-elf)
           ;;
 diff --git a/configure.ac b/configure.ac
-index d16a2757689..92f01fb3ed7 100644
+index 797a624621e..3a8a3ae1f3b 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -1177,7 +1177,7 @@ case "${target}" in
+@@ -1175,7 +1175,7 @@ case "${target}" in
    nvptx*-*-*)
      noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
      ;;
meta/recipes-devtools/binutils/binutils/0005-Point-scripts-location-to-libdir.patch +4 -4
index dde0cb5d6d..7cd4a99d33 100644
@@ -1,4 +1,4 @@
-From 6a67d277941228d997b527990960413f8444fb81 Mon Sep 17 00:00:00 2001
+From 1a9fcaae50e63b993019bd4dc00219e43421efdc 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 3b01357b651..b7a1f7491b0 100644
+index fd196541f59..d94fa7e64e1 100644
 --- a/ld/Makefile.am
 +++ b/ld/Makefile.am
 @@ -51,7 +51,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
@@ -25,10 +25,10 @@ index 3b01357b651..b7a1f7491b0 100644
  EMUL = @EMUL@
  EMULATION_OFILES = @EMULATION_OFILES@
 diff --git a/ld/Makefile.in b/ld/Makefile.in
-index a6382bf2a45..5ee3a4971be 100644
+index cb8f5bfb70e..9a58879c5ca 100644
 --- a/ld/Makefile.in
 +++ b/ld/Makefile.in
-@@ -562,7 +562,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
+@@ -563,7 +563,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
  # We put the scripts in the directory $(scriptdir)/ldscripts.
  # We can't put the scripts in $(datadir) because the SEARCH_DIR
  # directives need to be different for native and cross linkers.
meta/recipes-devtools/binutils/binutils/0006-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch +4 -4
index caa5f0bdd3..d6b04fdae4 100644
@@ -1,4 +1,4 @@
-From 8ad249270414a23a3e65c74fd67a8e4adaebec78 Mon Sep 17 00:00:00 2001
+From 29517900352336708495d41902b5b7e8cc9a401a Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:27:17 +0000
 Subject: [PATCH] Only generate an RPATH entry if LD_RUN_PATH is not empty
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <[email protected]>
  1 file changed, 4 insertions(+)
 
 diff --git a/ld/ldelf.c b/ld/ldelf.c
-index b25781cc0c4..77d7fb8ff03 100644
+index d1615003ede..6a894285b11 100644
 --- a/ld/ldelf.c
 +++ b/ld/ldelf.c
-@@ -1248,6 +1248,8 @@ ldelf_after_open (int use_libpath, int native, int is_linux, int is_freebsd,
+@@ -1250,6 +1250,8 @@ ldelf_after_open (int use_libpath, int native, int is_linux, int is_freebsd,
  		  && command_line.rpath == NULL)
  		{
  		  path = (const char *) getenv ("LD_RUN_PATH");
@@ -26,7 +26,7 @@ index b25781cc0c4..77d7fb8ff03 100644
  		  if (path
  		      && ldelf_search_needed (path, &n, force,
  					      is_linux, elfsize))
-@@ -1608,6 +1610,8 @@ ldelf_before_allocation (char *audit, char *depaudit,
+@@ -1610,6 +1612,8 @@ ldelf_before_allocation (char *audit, char *depaudit,
    rpath = command_line.rpath;
    if (rpath == NULL)
      rpath = (const char *) getenv ("LD_RUN_PATH");
meta/recipes-devtools/binutils/binutils/0007-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch +2 -2
index b13a35e02f..39cef70bcd 100644
@@ -1,4 +1,4 @@
-From 091870218f192a5698c4420adf938e7178553c07 Mon Sep 17 00:00:00 2001
+From 37581c8ce9d98a1183706e12a2c9a73f7f40462d 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 788590957e1..1bca4aafeb7 100644
+index 4f1213b983b..2ba18b75cac 100644
 --- a/libiberty/Makefile.in
 +++ b/libiberty/Makefile.in
 @@ -367,7 +367,8 @@ install-strip: install
meta/recipes-devtools/binutils/binutils/0008-warn-for-uses-of-system-directories-when-cross-linki.patch +42 -42

186 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/0009-Change-default-emulation-for-mips64-linux.patch +5 -5
index b8a1939d36..fab92d52e6 100644
@@ -1,4 +1,4 @@
-From 5bd94030de598d3a13091dafaed3b956e0ab708f Mon Sep 17 00:00:00 2001
+From fb6d52dda9c230baf869ed5f981581a7b5094b70 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:44:14 +0000
 Subject: [PATCH] Change default emulation for mips64*-*-linux
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <[email protected]>
  2 files changed, 8 insertions(+), 8 deletions(-)
 
 diff --git a/bfd/config.bfd b/bfd/config.bfd
-index e7b55b0dd78..2caf492e172 100644
+index 30087e3b8f8..1896e11790c 100644
 --- a/bfd/config.bfd
 +++ b/bfd/config.bfd
-@@ -896,12 +896,12 @@ case "${targ}" in
+@@ -891,12 +891,12 @@ case "${targ}" in
      targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
      ;;
    mips64*el-*-linux*)
@@ -35,10 +35,10 @@ index e7b55b0dd78..2caf492e172 100644
    mips*el-*-linux*)
      targ_defvec=mips_elf32_trad_le_vec
 diff --git a/ld/configure.tgt b/ld/configure.tgt
-index 0c780b24d57..47431770a17 100644
+index 6205d7c9872..c08533658e5 100644
 --- a/ld/configure.tgt
 +++ b/ld/configure.tgt
-@@ -531,12 +531,12 @@ mips*-*-vxworks*)	targ_emul=elf32ebmipvxworks
+@@ -530,12 +530,12 @@ mips*-*-vxworks*)	targ_emul=elf32ebmipvxworks
  			;;
  mips*-*-windiss)	targ_emul=elf32mipswindiss
  			;;
meta/recipes-devtools/binutils/binutils/0010-Add-support-for-Netlogic-XLP.patch +64 -55

331 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/0011-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch +8 -8
index 1041b7301e..389232c1e3 100644
@@ -1,4 +1,4 @@
-From 7f4938d062146e40b4e6d427a5eca6cc6acaaeee Mon Sep 17 00:00:00 2001
+From b77c5a67d4ac2513d0b4bab5e4dd1c33b339689b 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
@@ -11,22 +11,22 @@ Upstream-Status: Pending
  1 file changed, 1 insertion(+), 3 deletions(-)
 
 diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c
-index bbbadffad8f..72092355e12 100644
+index 13d8b6c3c07..cd979f9c80c 100644
 --- a/opcodes/ppc-opc.c
 +++ b/opcodes/ppc-opc.c
-@@ -6302,8 +6302,6 @@ const struct powerpc_opcode powerpc_opcodes[] = {
+@@ -6378,8 +6378,6 @@ const struct powerpc_opcode powerpc_opcodes[] = {
  {"waitasec",	X(31,30),      XRTRARB_MASK, POWER8,	POWER9,		{0}},
- {"waitrsv",	XWCPL(31,30,1,0),0xffffffff, POWER10,	0,		{0}},
- {"pause_short",	XWCPL(31,30,2,0),0xffffffff, POWER10,	0,		{0}},
+ {"waitrsv",	XWCPL(31,30,1,0),0xffffffff, POWER10,	EXT,		{0}},
+ {"pause_short",	XWCPL(31,30,2,0),0xffffffff, POWER10,	EXT,		{0}},
 -{"wait",	X(31,30),	XWCPL_MASK,  POWER10,	0,		{WC, PL}},
 -{"wait",	X(31,30),	XWC_MASK,    POWER9,	POWER10,	{WC}},
 
  {"lwepx",	X(31,31),	X_MASK,	  E500MC|PPCA2, 0,		{RT, RA0, RB}},
 
-@@ -6363,7 +6361,7 @@ const struct powerpc_opcode powerpc_opcodes[] = {
+@@ -6433,7 +6431,7 @@ const struct powerpc_opcode powerpc_opcodes[] = {
 
- {"waitrsv",	X(31,62)|(1<<21), 0xffffffff, E500MC|PPCA2, 0,		{0}},
- {"waitimpl",	X(31,62)|(2<<21), 0xffffffff, E500MC|PPCA2, 0,		{0}},
+ {"waitrsv",	X(31,62)|(1<<21), 0xffffffff, E500MC|PPCA2, EXT,	{0}},
+ {"waitimpl",	X(31,62)|(2<<21), 0xffffffff, E500MC|PPCA2, EXT,	{0}},
 -{"wait",	X(31,62),	XWC_MASK,    E500MC|PPCA2, 0,		{WC}},
 +{"wait",	X(31,62),	XWC_MASK,    E500MC|PPCA2|POWER9|POWER10, 0,	{WC}},
 
meta/recipes-devtools/binutils/binutils/0012-Detect-64-bit-MIPS-targets.patch +1 -1
index 659ae799ad..04f81c6671 100644
@@ -1,4 +1,4 @@
-From bb229568e505f2276ca58b72fef6781034fa839f Mon Sep 17 00:00:00 2001
+From 02374940dd34fddd2b04624af3f23e01f9cb81cd Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Fri, 31 Mar 2017 11:42:03 -0700
 Subject: [PATCH] Detect 64-bit MIPS targets
meta/recipes-devtools/binutils/binutils/0013-Use-libtool-2.4.patch +1125 -892

2,210 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/0014-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch +1 -1
index c3a95e653a..0e4790577a 100644

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

meta/recipes-devtools/binutils/binutils/0015-sync-with-OE-libtool-changes.patch +1 -1
index 824d9d4605..6afd37aafc 100644

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

meta/recipes-devtools/binutils/binutils/0016-Check-for-clang-before-checking-gcc-version.patch +5 -5
index 0602c803db..135cd0f9ad 100644

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

meta/recipes-devtools/binutils/binutils/0017-Add-support-for-the-DW_FORM_strx-forms-to-the-BFD-li.patch deleted +0 -183

183 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/0018-Add-DWARF-5-support-in-gold.patch deleted +0 -1374

1,374 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/CVE-2021-20197.patch deleted +0 -388

388 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils_2.37.bb renamed from meta/recipes-devtools/binutils/binutils_2.36.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/binutils/binutils_2.36.bb
rename to meta/recipes-devtools/binutils/binutils_2.37.bb

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

--
2.32.0

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

#1 lore raw

Hi Khem,

Quoted 9 lines · Khem Raj

This izOs next/latest release branch for binutils Drop backports and CVE fixes which already are applied upstream

bfd_stdint.h has been removed in favor of using stdint.h

---
V2: Fixes SDK builds for mingw and glew build with GLES

This didn't apply properly, I fixed it up, can you check
https://git.openembedded.org/openembedded-core-contrib/commit/?h=abelloni/master-next&id=efb06e3e03c750944bfa40314dae70c054bdaed4

It built fine and I have another build going right now.

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author
#2 lore raw
Quoted 8 lines · Alexandre Belloni

Hi Khem,

Quoted 5 lines · Khem Raj

This izOs next/latest release branch for binutils Drop backports and CVE fixes which already are applied upstream

bfd_stdint.h has been removed in favor of using stdint.h

Quoted 9 lines
Quoted 4 lines

---
V2: Fixes SDK builds for mingw and glew build with GLES

This didn't apply properly, I fixed it up, can you check

https://git.openembedded.org/openembedded-core-contrib/commit/?h=abelloni/master-next&id=efb06e3e03c750944bfa40314dae70c054bdaed4

What portion did not apply ? It looks alright to me but want to know so I can correct my branch since I have few other patches lined up before it I wonder if that’s the issue or something else

Quoted 8 lines

It built fine and I have another build going right now.

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

#3 lore raw
Quoted 16 lines · Khem Raj
Quoted 13 lines · Alexandre Belloni

Hi Khem,

Quoted 9 lines · Khem Raj

This izOs next/latest release branch for binutils Drop backports and CVE fixes which already are applied upstream

bfd_stdint.h has been removed in favor of using stdint.h

---
V2: Fixes SDK builds for mingw and glew build with GLES

Quoted 8 lines
Quoted 4 lines

This didn't apply properly, I fixed it up, can you check

https://git.openembedded.org/openembedded-core-contrib/commit/?h=abelloni/master-next&id=efb06e3e03c750944bfa40314dae70c054bdaed4

What portion did not apply ? It looks alright to me but want to know so I can correct my branch since I have few other patches lined up before it I wonder if that’s the issue or something else

Almost none of it applied, it is most likely caused by whitespace changes as this was the main difference between v1 and v2. What I did is take v1 and changed the SRCREV to be the one of v2.

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author
#4 lore raw
Quoted 23 lines · Alexandre Belloni
Quoted 11 lines · Khem Raj
Quoted 8 lines · Alexandre Belloni

Hi Khem,

Quoted 5 lines · Khem Raj

This izOs next/latest release branch for binutils Drop backports and CVE fixes which already are applied upstream

bfd_stdint.h has been removed in favor of using stdint.h

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines

---
V2: Fixes SDK builds for mingw and glew build with GLES

This didn't apply properly, I fixed it up, can you check

https://git.openembedded.org/openembedded-core-contrib/commit/?h=abelloni/master-next&id=efb06e3e03c750944bfa40314dae70c054bdaed4

Quoted 2 lines
Quoted 1 line
Quoted 6 lines
Quoted 3 lines

What portion did not apply ? It looks alright to me but want to know so I can correct my branch since I have few other patches lined up before it I wonder if that’s the issue or something else

Almost none of it applied, it is most likely caused by whitespace changes as this was the main difference between v1 and v2. What I did is

Interesting I wonder why it happened

Quoted 2 lines

take v1 and changed the SRCREV to be the one of v2.

Ok if it was just that Change then we are fine here

Quoted 7 lines

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com