Skip to contentSkip to conversation

binutils: Upgrade to 2.31 release branch

PATCH In review Khem Raj 3 participants 5 messages Jul 17, 2018 – Aug 8, 2018

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 binutils: Upgrade to 2.31 release branch

---
 meta/conf/distro/include/tcmode-default.inc   |    2 +-
 .../{binutils-2.30.inc => binutils-2.31.inc}  |    2 +-
 ....30.bb => binutils-cross-canadian_2.31.bb} |    0
 ...s-cross_2.30.bb => binutils-cross_2.31.bb} |    0
 ...ssdk_2.30.bb => binutils-crosssdk_2.31.bb} |    0
 ...s-crosssdk-Generate-relocatable-SDKs.patch |   12 +-
 ...o-not-generate-linker-script-directo.patch |   22 +-
 ...iden-the-regexp-for-SH-architectures.patch |   12 +-
 ...004-Point-scripts-location-to-libdir.patch |   10 +-
 ...-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch |   10 +-
 .../binutils/0006-Use-libtool-2.4.patch       | 2296 +++++++++--------
 ...-the-armv5e-architecture-to-binutils.patch |    8 +-
 ...stro-compiler-point-to-the-wrong-ins.patch |    4 +-
 ...-system-directories-when-cross-linki.patch |   50 +-
 ...h-in-libtool-when-sysroot-is-enabled.patch |    4 +-
 ...e-default-emulation-for-mips64-linux.patch |   12 +-
 .../0012-Add-support-for-Netlogic-XLP.patch   |   80 +-
 ...ect-assembling-for-ppc-wait-mnemonic.patch |   10 +-
 .../0014-Detect-64-bit-MIPS-targets.patch     |    4 +-
 .../0015-sync-with-OE-libtool-changes.patch   |    4 +-
 .../{binutils_2.30.bb => binutils_2.31.bb}    |    0
 21 files changed, 1327 insertions(+), 1215 deletions(-)
 rename meta/recipes-devtools/binutils/{binutils-2.30.inc => binutils-2.31.inc} (97%)
 rename meta/recipes-devtools/binutils/{binutils-cross-canadian_2.30.bb => binutils-cross-canadian_2.31.bb} (100%)
 rename meta/recipes-devtools/binutils/{binutils-cross_2.30.bb => binutils-cross_2.31.bb} (100%)
 rename meta/recipes-devtools/binutils/{binutils-crosssdk_2.30.bb => binutils-crosssdk_2.31.bb} (100%)
 rename meta/recipes-devtools/binutils/{binutils_2.30.bb => binutils_2.31.bb} (100%)
meta/conf/distro/include/tcmode-default.inc +1 -1
index cb17061706..24a21b5837 100644
@@ -24,7 +24,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
 
 GCCVERSION ?= "8.%"
 SDKGCCVERSION ?= "${GCCVERSION}"
-BINUVERSION ?= "2.30%"
+BINUVERSION ?= "2.31%"
 GDBVERSION ?= "8.1%"
 GLIBCVERSION ?= "2.27%"
 LINUXLIBCVERSION ?= "4.15%"
meta/recipes-devtools/binutils/binutils-2.31.inc renamed from meta/recipes-devtools/binutils/binutils-2.30.inc +1 -1
similarity index 97%
rename from meta/recipes-devtools/binutils/binutils-2.30.inc
rename to meta/recipes-devtools/binutils/binutils-2.31.inc
index 9c883acc52..ec9e9c330d 100644
@@ -18,7 +18,7 @@ BINUPV = "${@binutils_branch_version(d)}"
 
 UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)"
 
-SRCREV ?= "caa839fba66600a6c36d3639906ed9110b79c307"
+SRCREV ?= "f8b4d71490df766ca9c474f7ab9c82b3a8029a5a"
 BINUTILS_GIT_URI ?= "git://sourceware.org/git/binutils-gdb.git;branch=binutils-${BINUPV}-branch;protocol=git"
 SRC_URI = "\
      ${BINUTILS_GIT_URI} \
meta/recipes-devtools/binutils/binutils-cross-canadian_2.31.bb renamed from meta/recipes-devtools/binutils/binutils-cross-canadian_2.30.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/binutils/binutils-cross-canadian_2.30.bb
rename to meta/recipes-devtools/binutils/binutils-cross-canadian_2.31.bb
meta/recipes-devtools/binutils/binutils-cross_2.31.bb renamed from meta/recipes-devtools/binutils/binutils-cross_2.30.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/binutils/binutils-cross_2.30.bb
rename to meta/recipes-devtools/binutils/binutils-cross_2.31.bb
meta/recipes-devtools/binutils/binutils-crosssdk_2.31.bb renamed from meta/recipes-devtools/binutils/binutils-crosssdk_2.30.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/binutils/binutils-crosssdk_2.30.bb
rename to meta/recipes-devtools/binutils/binutils-crosssdk_2.31.bb
meta/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch +6 -6
index 2df836057d..6bdb407b1e 100644
@@ -1,4 +1,4 @@
-From 2e1b5e24a6759de7f73aa6060a574848d9131b5a Mon Sep 17 00:00:00 2001
+From 4a99f058030c86794bb96b582a7dbd631f963b06 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:58:54 +0000
 Subject: [PATCH 01/15] binutils-crosssdk: Generate relocatable SDKs
@@ -18,10 +18,10 @@ Signed-off-by: Khem Raj <[email protected]>
  2 files changed, 5 insertions(+), 2 deletions(-)
 
 diff --git a/ld/genscripts.sh b/ld/genscripts.sh
-index 8732422b3a..1f257e99ca 100755
+index 370b22269d..a5c367aa8f 100755
 --- a/ld/genscripts.sh
 +++ b/ld/genscripts.sh
-@@ -277,6 +277,7 @@ DATA_ALIGNMENT_u="${DATA_ALIGNMENT_u-${DATA_ALIGNMENT_r}}"
+@@ -279,6 +279,7 @@ DATA_ALIGNMENT_u="${DATA_ALIGNMENT_u-${DATA_ALIGNMENT_r}}"
  LD_FLAG=r
  DATA_ALIGNMENT=${DATA_ALIGNMENT_r}
  DEFAULT_DATA_ALIGNMENT="ALIGN(${SEGMENT_SIZE})"
@@ -29,7 +29,7 @@ index 8732422b3a..1f257e99ca 100755
  ( echo "/* Script for ld -r: link without relocation */"
    . ${CUSTOMIZER_SCRIPT}
    . ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
-@@ -285,10 +286,12 @@ DEFAULT_DATA_ALIGNMENT="ALIGN(${SEGMENT_SIZE})"
+@@ -287,10 +288,12 @@ DEFAULT_DATA_ALIGNMENT="ALIGN(${SEGMENT_SIZE})"
  LD_FLAG=u
  DATA_ALIGNMENT=${DATA_ALIGNMENT_u}
  CONSTRUCTING=" "
@@ -43,7 +43,7 @@ index 8732422b3a..1f257e99ca 100755
  DATA_ALIGNMENT=${DATA_ALIGNMENT_}
  RELOCATING=" "
 diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
-index 9787ab5dac..0c8a93c2c8 100644
+index 444aef2942..afa99f736d 100644
 --- a/ld/scripttempl/elf.sc
 +++ b/ld/scripttempl/elf.sc
 @@ -139,8 +139,8 @@ if test -z "$DATA_SEGMENT_ALIGN"; then
@@ -58,5 +58,5 @@ index 9787ab5dac..0c8a93c2c8 100644
  if test -z "$PLT"; then
    IPLT=".iplt         ${RELOCATING-0} : { *(.iplt) }"
 -- 
-2.16.1
+2.18.0
 
meta/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch +12 -10
index bac7fb2d1a..0208213832 100644
@@ -1,4 +1,4 @@
-From 58ddf38fa53abb48b69dd76e398c73451ad1a5eb Mon Sep 17 00:00:00 2001
+From 6e78b1c88c040a742b7af82542ac7eb92eddda3d Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 6 Mar 2017 23:37:05 -0800
 Subject: [PATCH 02/15] binutils-cross: Do not generate linker script
@@ -19,14 +19,14 @@ RP 2017/01/30
 
 Signed-off-by: Khem Raj <[email protected]>
 ---
- ld/genscripts.sh | 23 -----------------------
- 1 file changed, 23 deletions(-)
+ ld/genscripts.sh | 25 -------------------------
+ 1 file changed, 25 deletions(-)
 
 diff --git a/ld/genscripts.sh b/ld/genscripts.sh
-index 1f257e99ca..1583b73a2b 100755
+index a5c367aa8f..6cc9eed976 100755
 --- a/ld/genscripts.sh
 +++ b/ld/genscripts.sh
-@@ -189,29 +189,6 @@ append_to_lib_path()
+@@ -189,31 +189,6 @@ append_to_lib_path()
    fi
  }
  
@@ -44,10 +44,12 @@ index 1f257e99ca..1583b73a2b 100755
 -    # because 64bit libraries may be in both places, depending on
 -    # cross-development setup method (e.g.: /usr/s390x-linux/lib64
 -    # vs. /usr/s390-linux/lib64)
--    case "${NATIVE}:${LIBPATH_SUFFIX}:${TOOL_LIB}" in
--      :* | *::* | *:*:*${LIBPATH_SUFFIX}) ;;
--      *) libs="${exec_prefix}/${target_alias}/lib${LIBPATH_SUFFIX}" ;;
--    esac
+-    for libpath_suffix in ${LIBPATH_SUFFIX}; do
+-      case "${NATIVE}:${libpath_suffix}:${TOOL_LIB}" in
+-	:* | *::* | *:*:*${libpath_suffix}) ;;
+-	*) libs="${exec_prefix}/${target_alias}/lib${libpath_suffix}" ;;
+-      esac
+-    done
 -    libs="${exec_prefix}/${TOOL_LIB}/lib ${libs}"
 -  fi
 -  append_to_lib_path ${libs}
@@ -57,5 +59,5 @@ index 1f257e99ca..1583b73a2b 100755
    libs=${NATIVE_LIB_DIRS}
    if [ "x${NATIVE}" = "xyes" ] ; then
 -- 
-2.16.1
+2.18.0
 
meta/recipes-devtools/binutils/binutils/0003-configure-widen-the-regexp-for-SH-architectures.patch +6 -6
index 306afe7018..15193c10a6 100644
@@ -1,4 +1,4 @@
-From 5089be88f670bcadf7db0e778894f900b2c05d7b Mon Sep 17 00:00:00 2001
+From 4c6fd8f5eb9bc7c0d02f1a98ad86e395d4d2ab3b Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:07:33 +0000
 Subject: [PATCH 03/15] configure: widen the regexp for SH architectures
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <[email protected]>
  2 files changed, 6 insertions(+), 1 deletion(-)
 
 diff --git a/configure b/configure
-index 2d615a9996..c4ad45c06c 100755
+index 08dd35c3ea..815e74ddb7 100755
 --- a/configure
 +++ b/configure
-@@ -3835,7 +3835,7 @@ case "${target}" in
+@@ -3855,7 +3855,7 @@ case "${target}" in
    nvptx*-*-*)
      noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
      ;;
@@ -27,10 +27,10 @@ index 2d615a9996..c4ad45c06c 100755
        sh*-*-elf)
           ;;
 diff --git a/gprof/configure b/gprof/configure
-index 1e25102976..6b43bf2b18 100755
+index 447cea7884..a730e20509 100755
 --- a/gprof/configure
 +++ b/gprof/configure
-@@ -5874,6 +5874,11 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
+@@ -6162,6 +6162,11 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
    lt_cv_deplibs_check_method=pass_all
    ;;
  
@@ -43,5 +43,5 @@ index 1e25102976..6b43bf2b18 100755
    if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 -- 
-2.16.1
+2.18.0
 
meta/recipes-devtools/binutils/binutils/0004-Point-scripts-location-to-libdir.patch +5 -5
index 3e29c5815a..bf1c1be27d 100644
@@ -1,4 +1,4 @@
-From a0e893ea094c48fa803046ffa89e31907aee0597 Mon Sep 17 00:00:00 2001
+From 48ad5292b10408d4e5d5739022753a7183a1cbb3 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:09:58 +0000
 Subject: [PATCH 04/15] 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 6243c12528..3c5d6c8202 100644
+index d86ad0940c..c95b0ef025 100644
 --- a/ld/Makefile.am
 +++ b/ld/Makefile.am
 @@ -57,7 +57,7 @@ endif
@@ -25,10 +25,10 @@ index 6243c12528..3c5d6c8202 100644
  EMUL = @EMUL@
  EMULATION_OFILES = @EMULATION_OFILES@
 diff --git a/ld/Makefile.in b/ld/Makefile.in
-index 760c037f9d..6dea692869 100644
+index 4792b2b013..789df2d01b 100644
 --- a/ld/Makefile.in
 +++ b/ld/Makefile.in
-@@ -446,7 +446,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.
@@ -38,5 +38,5 @@ index 760c037f9d..6dea692869 100644
  BFDDIR = $(BASEDIR)/bfd
  INCDIR = $(BASEDIR)/include
 -- 
-2.16.1
+2.18.0
 
meta/recipes-devtools/binutils/binutils/0005-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch +5 -5
index 2f49969371..1f589718ed 100644
@@ -1,4 +1,4 @@
-From 518abb195d0eb47d8eef581d7fd0a5fd9fa73f7d Mon Sep 17 00:00:00 2001
+From 79e53510b1f9e16a21db312698fb1c1c442481e7 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:27:17 +0000
 Subject: [PATCH 05/15] Only generate an RPATH entry if LD_RUN_PATH is not
@@ -15,10 +15,10 @@ Signed-off-by: Khem Raj <[email protected]>
  1 file changed, 4 insertions(+)
 
 diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
-index c0925fc9b9..7d7670a89f 100644
+index 1ad9d6b6fa..6a025a45b4 100644
 --- a/ld/emultempl/elf32.em
 +++ b/ld/emultempl/elf32.em
-@@ -1470,6 +1470,8 @@ fragment <<EOF
+@@ -1471,6 +1471,8 @@ fragment <<EOF
  	      && command_line.rpath == NULL)
  	    {
  	      path = (const char *) getenv ("LD_RUN_PATH");
@@ -27,7 +27,7 @@ index c0925fc9b9..7d7670a89f 100644
  	      if (path
  		  && gld${EMULATION_NAME}_search_needed (path, &n, force))
  		break;
-@@ -1750,6 +1752,8 @@ gld${EMULATION_NAME}_before_allocation (void)
+@@ -1751,6 +1753,8 @@ gld${EMULATION_NAME}_before_allocation (void)
    rpath = command_line.rpath;
    if (rpath == NULL)
      rpath = (const char *) getenv ("LD_RUN_PATH");
@@ -37,5 +37,5 @@ index c0925fc9b9..7d7670a89f 100644
    for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next)
      if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
 -- 
-2.16.1
+2.18.0
 
meta/recipes-devtools/binutils/binutils/0006-Use-libtool-2.4.patch +1203 -1093

2,803 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/0007-Add-the-armv5e-architecture-to-binutils.patch +4 -4
index 4a5127380f..18ef6bb7ff 100644

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

meta/recipes-devtools/binutils/binutils/0008-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch +2 -2
index 939be67b58..6999ed9c94 100644

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

meta/recipes-devtools/binutils/binutils/0009-warn-for-uses-of-system-directories-when-cross-linki.patch +25 -25

50 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/0010-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch +2 -2
index 33dfff9bd7..8fc00ff456 100644

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

meta/recipes-devtools/binutils/binutils/0011-Change-default-emulation-for-mips64-linux.patch +6 -6
index 80fcbc1194..2e93b129dd 100644

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

meta/recipes-devtools/binutils/binutils/0012-Add-support-for-Netlogic-XLP.patch +40 -40

80 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/0013-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch +5 -5
index c3e1b13841..c9ffdada91 100644

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

meta/recipes-devtools/binutils/binutils/0014-Detect-64-bit-MIPS-targets.patch +2 -2
index cf3690f25d..6197df6d5a 100644

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

meta/recipes-devtools/binutils/binutils/0015-sync-with-OE-libtool-changes.patch +2 -2
index 8c9fd237e7..7dc8ba8c37 100644

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

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

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

Signature · 1 line
2.18.0

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

author
#2 lore raw

Thanks! Yes I had tried that patch locally here and It is the right one

Quoted 15 lines · Ross

Breaks grub-efi:

DEBUG: Executing shell function do_mkimage
grub-mkimage: error: relocation 0x4 is not implemented yet.

Looks like
http://git.savannah.gnu.org/cgit/grub.git/commit/util?id=842c390469e2c2e10b5aa36700324cd3bde25875
,
i'll pick that in.

Apart from that though, everything else built so I'll respin with this grub patch and then we get the selftests...

Ross

#3 lore raw
In reply to Khem Raj

Hi Khem,

The new binutils may cause build failures with kernel 4.18 (linux-yocto-dev),

arch/x86/Makefile:184: *** Compiler lacks asm-goto support.. Stop.

The line for checking asm goto is in kernel's top Makefile:

# check for 'asm goto'
ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)
  CC_HAVE_ASM_GOTO := 1
  KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
  KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
endif

And in gcc-goto.sh:
cat << "END" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y" int main(void)
{

#if defined(__arm__) || defined(__aarch64__)
    /*
     * Not related to asm goto, but used by jump label
     * and broken on some ARM GCC versions (see GCC Bug 48637).
     */
    static struct { int dummy; int state; } tp;
    asm (".long %c0" :: "i" (&tp.state));

#endif

entry:

    asm goto ("" :::: entry);
    return 0;
}

END

This script reports:

Assembler messages:
Fatal error: The input and output files must be distinct

And it is introduced by binutils' commit:

commit 67f846b59b32f3d704c601669409c2584383fea9

Author: John Darrington <[email protected]>
Date:   Thu Apr 12 15:07:02 2018 +0100

Stop the assembler from overwriting its output file.

[snip]
+ if (sib.st_ino == sob.st_ino)
+ {

+                 /* Don't let as_fatal remove the output file!  */
+                 out_file_name = NULL;
+                 as_fatal (_("The input and output files must be distinct"));

[snip]

I can't reproduce this problem locally, but it can be reproduced in our daily build. Yocto doesn't have this problem atm since it use linux-yocto (not -dev).

Do you have any suggestions, please ?

// Robert

Quoted 30 lines · Khem Raj
---
  meta/conf/distro/include/tcmode-default.inc   |    2 +-
  .../{binutils-2.30.inc => binutils-2.31.inc}  |    2 +-
  ....30.bb => binutils-cross-canadian_2.31.bb} |    0
  ...s-cross_2.30.bb => binutils-cross_2.31.bb} |    0
  ...ssdk_2.30.bb => binutils-crosssdk_2.31.bb} |    0
  ...s-crosssdk-Generate-relocatable-SDKs.patch |   12 +-
  ...o-not-generate-linker-script-directo.patch |   22 +-
  ...iden-the-regexp-for-SH-architectures.patch |   12 +-
  ...004-Point-scripts-location-to-libdir.patch |   10 +-
  ...-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch |   10 +-
  .../binutils/0006-Use-libtool-2.4.patch       | 2296 +++++++++--------
  ...-the-armv5e-architecture-to-binutils.patch |    8 +-
  ...stro-compiler-point-to-the-wrong-ins.patch |    4 +-
  ...-system-directories-when-cross-linki.patch |   50 +-
  ...h-in-libtool-when-sysroot-is-enabled.patch |    4 +-
  ...e-default-emulation-for-mips64-linux.patch |   12 +-
  .../0012-Add-support-for-Netlogic-XLP.patch   |   80 +-
  ...ect-assembling-for-ppc-wait-mnemonic.patch |   10 +-
  .../0014-Detect-64-bit-MIPS-targets.patch     |    4 +-
  .../0015-sync-with-OE-libtool-changes.patch   |    4 +-
  .../{binutils_2.30.bb => binutils_2.31.bb}    |    0
  21 files changed, 1327 insertions(+), 1215 deletions(-)

rename meta/recipes-devtools/binutils/{binutils-2.30.inc => binutils-2.31.inc} (97%)
rename meta/recipes-devtools/binutils/{binutils-cross-canadian_2.30.bb => binutils-cross-canadian_2.31.bb} (100%) rename meta/recipes-devtools/binutils/{binutils-cross_2.30.bb => binutils-cross_2.31.bb} (100%) rename meta/recipes-devtools/binutils/{binutils-crosssdk_2.30.bb => binutils-crosssdk_2.31.bb} (100%) rename meta/recipes-devtools/binutils/{binutils_2.30.bb => binutils_2.31.bb} (100%)

#4 lore raw
Quoted 8 lines · Robert Yang

commit 67f846b59b32f3d704c601669409c2584383fea9
Author: John Darrington <[email protected]> Date:   Thu Apr 12 15:07:02 2018 +0100

    Stop the assembler from overwriting its output file.

[snip]
+             if (sib.st_ino == sob.st_ino)

I've figured out the root cause, the input and output files maybe on different devices, so different files may have the same ino, we need check whether sib.st_dev == sob.st_dev, too.

I will send a patch to fix it after more testing.

// Robert

Quoted 45 lines

+               {
+                 /* Don't let as_fatal remove the output file!  */ +                 out_file_name = NULL;
+                 as_fatal (_("The input and output files must be distinct")); [snip]

I can't reproduce this problem locally, but it can be reproduced in our daily build. Yocto doesn't have this problem atm since it use linux-yocto (not -dev).

Do you have any suggestions, please ?

// Robert

Quoted 30 lines · Khem Raj

---
  meta/conf/distro/include/tcmode-default.inc   |    2 +- .../{binutils-2.30.inc => binutils-2.31.inc}  |    2 +-

  ....30.bb => binutils-cross-canadian_2.31.bb} |    0
  ...s-cross_2.30.bb => binutils-cross_2.31.bb} |    0
  ...ssdk_2.30.bb => binutils-crosssdk_2.31.bb} |    0
  ...s-crosssdk-Generate-relocatable-SDKs.patch |   12 +-
  ...o-not-generate-linker-script-directo.patch |   22 +-
  ...iden-the-regexp-for-SH-architectures.patch |   12 +-
  ...004-Point-scripts-location-to-libdir.patch |   10 +-
  ...-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch |   10 +-
  .../binutils/0006-Use-libtool-2.4.patch       | 2296 +++++++++--------
  ...-the-armv5e-architecture-to-binutils.patch |    8 +-
  ...stro-compiler-point-to-the-wrong-ins.patch |    4 +-
  ...-system-directories-when-cross-linki.patch |   50 +-
  ...h-in-libtool-when-sysroot-is-enabled.patch |    4 +-
  ...e-default-emulation-for-mips64-linux.patch |   12 +-

  .../0012-Add-support-for-Netlogic-XLP.patch   |   80 +- ...ect-assembling-for-ppc-wait-mnemonic.patch |   10 +- .../0014-Detect-64-bit-MIPS-targets.patch     |    4 +- .../0015-sync-with-OE-libtool-changes.patch   |    4 +- .../{binutils_2.30.bb => binutils_2.31.bb}    |    0

  21 files changed, 1327 insertions(+), 1215 deletions(-)

  rename meta/recipes-devtools/binutils/{binutils-2.30.inc => binutils-2.31.inc} (97%)
  rename meta/recipes-devtools/binutils/{binutils-cross-canadian_2.30.bb => binutils-cross-canadian_2.31.bb} (100%) rename meta/recipes-devtools/binutils/{binutils-cross_2.30.bb => binutils-cross_2.31.bb} (100%) rename meta/recipes-devtools/binutils/{binutils-crosssdk_2.30.bb => binutils-crosssdk_2.31.bb} (100%) rename meta/recipes-devtools/binutils/{binutils_2.30.bb => binutils_2.31.bb} (100%)