Skip to contentSkip to conversation

musl: Upgrade to tip of tree

PATCH In review Khem Raj 2 participants 9 messages Feb 14, 2016 – Feb 15, 2016

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/5 musl: Upgrade to tip of tree

From: Andre McCurdy <[email protected]>

Includes misc minor bugs fixes:

0ed932f do not define static_assert macro for pre-C11 compilers 692b16d add declarations for utmpname/utmpxname to appropriate headers 500c688 fix return value for fread/fwrite when size argument is 0 416d1c7 fix line-buffered flush omission for odd usage of putc-family functions 5a6e8d0 fix failed write reporting by fwrite in line-buffered mode 869a9df remove workaround for broken mips assemblers

The addition of utmpname/utmpxname prototypes fixes a change introduced in the previous git snapshot version which broke lxc.

---
 meta/recipes-core/musl/musl_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/musl/musl_git.bb +1 -1
index d4413f5..8c54db8 100644
@@ -3,7 +3,7 @@
 
 require musl.inc
 
-SRCREV = "756c8af8589265e99e454fe3adcda1d0bc5e1963"
+SRCREV = "0ed932f34f11663e6b3ddfa866b1798a5938a3dc"
 
 PV = "1.1.12+git${SRCPV}"
 
Signature · 1 line
2.7.1
author
#1 lore raw

PATCH 2/5 security_flags: Add SECURITY_CFLAGS to TARGET_CC_ARCH for binutils

libtool decides to
filter out -fstack-protector-strong on its own and its documented here

https://www.gnu.org/software/libtool/manual/html_node/Stripped-link-flags.html

this causes linking errors when linking libbfd.so since objects (.o) are compiled using -fstack-protector-strong so they are expecting to link with libssp but the option goes missing in linker flags.

With this patch the security flags are hoisted upto CC itself and libtool thankfully does not touch CC.

Adding to CC also means that we can now remove it from LDFLAGS since when gcc driver is used to do linking then we have LD = CC and this option makes to linker cmdline

Since CC is used without CFLAGS in configure tests, some tests fail complaining that -Olevel is not used while using _FORTIFY_SOURCE therefore added SELECTED_OPTIMIZATION to TARGET_CC_ARCH as well

---
 meta/conf/distro/include/security_flags.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/conf/distro/include/security_flags.inc +2 -0
index 235f413..f2ab644 100644
@@ -103,3 +103,5 @@ SECURITY_LDFLAGS_pn-xf86-video-omap = "${SECURITY_X_LDFLAGS}"
 SECURITY_LDFLAGS_pn-xf86-video-vesa = "${SECURITY_X_LDFLAGS}"
 SECURITY_LDFLAGS_pn-xf86-video-vmware = "${SECURITY_X_LDFLAGS}"
 SECURITY_LDFLAGS_pn-xserver-xorg = "${SECURITY_X_LDFLAGS}"
+
+TARGET_CC_ARCH_pn-binutils_append = " ${SECURITY_CFLAGS} ${SELECTED_OPTIMIZATION}"
Signature · 1 line
2.7.1
author
#2 lore raw

PATCH 3/5 rpm: Fix build with musl

In reply to Khem Raj
---
 .../rpm/rpm/0001-rpm-Fix-build-on-musl.patch       | 162 +++++++++++++++++++++
 meta/recipes-devtools/rpm/rpm_5.4.14.bb            |   5 +-
 2 files changed, 166 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/rpm/rpm/0001-rpm-Fix-build-on-musl.patch
meta/recipes-devtools/rpm/rpm/0001-rpm-Fix-build-on-musl.patch new file +162 -0
new file mode 100644
index 0000000..763dc57
@@ -0,0 +1,162 @@
+From 0af17c2ae86c1e8e42b96f6dface08f535bb55ad Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sun, 14 Feb 2016 08:33:24 +0000
+Subject: [PATCH] rpm: Fix build on musl
+
+Provide alternatives to assumptions about glibc
+on linux
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+Upstream-Status: Pending
+
+ rpmio/fts.c       |  4 ++++
+ rpmqv.c           |  6 +++++-
+ system.h          |  2 +-
+ tools/debugedit.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++
+ tools/rpmfind.c   |  6 +++---
+ 5 files changed, 60 insertions(+), 5 deletions(-)
+
+diff --git a/rpmio/fts.c b/rpmio/fts.c
+index 2d7594c..b7aa9b8 100644
+--- a/rpmio/fts.c
++++ b/rpmio/fts.c
+@@ -124,6 +124,10 @@ static char sccsid[] = "@(#)fts.c	8.6 (Berkeley) 8/14/94";
+ #   define __fxstat64(_stat_ver, _fd, _sbp)    fstat((_fd), (_sbp))
+ #endif
+ 
++#ifndef _STAT_VER
++#   define _STAT_VER      0
++#endif
++
+ #if !defined(_D_EXACT_NAMLEN)
+ #   define _D_EXACT_NAMLEN(d) (strlen((d)->d_name))
+ #endif
+diff --git a/rpmqv.c b/rpmqv.c
+index 14c73e2..b2d3e24 100644
+--- a/rpmqv.c
++++ b/rpmqv.c
+@@ -523,7 +523,11 @@ int main(int argc, const char ** argv)
+     (void) initproctitle(argc, (char **)argv, environ);
+ #endif
+ #endif  
+-
++    /* XXX glibc churn sanity */
++    if (__progname == NULL) {
++        if ((__progname = strrchr(argv[0], '/')) != NULL) __progname++;
++        else __progname = argv[0];
++    }
+     /* Set the major mode based on argv[0] */
+     /*@-nullpass@*/
+ #ifdef	IAM_RPMBT
+diff --git a/system.h b/system.h
+index 72851c0..05f7553 100644
+--- a/system.h
++++ b/system.h
+@@ -791,5 +791,5 @@ static inline const char *rcsid(const char *p) { \
+  * Permit ar(1) payloads. Disabled while rpmio/iosm.c is under development.
+  */
+ #undef	SUPPORT_AR_PAYLOADS
+-
+ #endif	/* H_SYSTEM */
++const char *program_name;
+diff --git a/tools/debugedit.c b/tools/debugedit.c
+index 29e8ee9..b2a8918 100644
+--- a/tools/debugedit.c
++++ b/tools/debugedit.c
+@@ -23,7 +23,12 @@
+ #include <byteswap.h>
+ #include <endian.h>
+ #include <errno.h>
++#ifdef __GLIBC__
+ #include <error.h>
++#else
++#include <stdarg.h>
++void error(int, int, const char *, ...);
++#endif
+ #include <limits.h>
+ #include <string.h>
+ #include <stdlib.h>
+@@ -1531,6 +1536,48 @@ handle_build_id (DSO *dso, Elf_Data *build_id,
+     puts (hex);
+   }
+ }
++#ifndef __GLIBC__
++extern char *__progname;
++
++void (*error_print_progname)(void) = 0;
++unsigned int error_message_count = 0;
++int error_one_per_line = 0;
++
++static void eprint(int status, int e, const char *file, unsigned int line, const char *fmt, va_list ap)
++{
++       if (file && error_one_per_line) {
++               static const char *oldfile;
++               static unsigned int oldline;
++               if (line == oldline && strcmp(file, oldfile) == 0)
++                       return;
++               oldfile = file;
++               oldline = line;
++       }
++       if (error_print_progname)
++               error_print_progname();
++       else
++               fprintf(stderr, "%s: ", __progname);
++       if (file)
++               fprintf(stderr, "%s:%u: ", file, line);
++       vfprintf(stderr, fmt, ap);
++      if (e)
++               fprintf(stderr, ": %s", strerror(e));
++       putc('\n', stderr);
++       fflush(stderr);
++       error_message_count++;
++       if (status)
++               exit(status);
++}
++
++void error(int status, int e, const char *fmt, ...)
++{
++       va_list ap;
++       va_start(ap,fmt);
++       eprint(status, e, 0, 0, fmt, ap);
++       va_end(ap);
++}
++
++#endif
+ 
+ /* It avoided the segment fault while file's bss offset have a large number.
+    See https://bugzilla.redhat.com/show_bug.cgi?id=1019707
+diff --git a/tools/rpmfind.c b/tools/rpmfind.c
+index 816aeef..327fab0 100644
+--- a/tools/rpmfind.c
++++ b/tools/rpmfind.c
+@@ -1174,7 +1174,7 @@ find_parsenum(PLAN *plan, const char *option, char *vp, char *endch)
+      * and endchar points to the beginning of the string we know we have
+      * a syntax error.
+      */
+-#if defined(__sun)
++#if defined(__sun) || !defined(__GLIBC_)
+     value = strtoll(str, &endchar, 10);
+ #else
+     value = strtoq(str, &endchar, 10);
+@@ -1214,7 +1214,7 @@ find_parsetime(PLAN *plan, const char *option, char *vp)
+ 	break;
+     }
+ 
+-#if defined(__sun)
++#if defined(__sun) || !defined(__GLIBC_)
+     value = strtoll(str, &unit, 10);
+ #else
+     value = strtoq(str, &unit, 10);
+@@ -1252,7 +1252,7 @@ find_parsetime(PLAN *plan, const char *option, char *vp)
+ 	str = unit + 1;
+ 	if (*str == '\0')	/* EOS */
+ 	    break;
+-#if defined(__sun)
++#if defined(__sun) || !defined(__GLIBC_)
+ 	value = strtoll(str, &unit, 10);
+ #else
+ 	value = strtoq(str, &unit, 10);
+-- 
+2.7.1
+
meta/recipes-devtools/rpm/rpm_5.4.14.bb +4 -1
index 24aaf65..261b280 100644
@@ -103,8 +103,11 @@ SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.14-0.20131024.src.rpm;e
 	   file://0001-define-EM_AARCH64.patch \
 	   file://rpm-rpmfc.c-fix-for-N32-MIPS64.patch \
 	   file://rpm-lib-transaction.c-fix-file-conflicts-for-mips64-N32.patch \
-	  "
+"
 
+SRC_URI_append_libc-musl = "\
+           file://0001-rpm-Fix-build-on-musl.patch \
+"
 # Uncomment the following line to enable platform score debugging
 # This is useful when identifying issues with Smart being unable
 # to process certain package feeds.
Signature · 1 line
2.7.1
author
#3 lore raw

PATCH 4/5 valgrind: Fix build with musl

In reply to Khem Raj
---
 .../valgrind/0001-fix-build-for-musl-targets.patch | 69 ++++++++++++++++++++++
 meta/recipes-devtools/valgrind/valgrind_3.11.0.bb  |  6 +-
 2 files changed, 73 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-devtools/valgrind/valgrind/0001-fix-build-for-musl-targets.patch
meta/recipes-devtools/valgrind/valgrind/0001-fix-build-for-musl-targets.patch new file +69 -0
new file mode 100644
index 0000000..dc6feff
@@ -0,0 +1,69 @@
+From 1b1a024efd18d44294e184e792c1e039cab02bfe Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sun, 14 Feb 2016 09:14:12 +0000
+Subject: [PATCH] fix build for musl targets
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+Upstream-Status: Pending
+
+ configure.ac             | 2 --
+ coregrind/vg_preloaded.c | 2 +-
+ include/pub_tool_redir.h | 7 +++++--
+ 3 files changed, 6 insertions(+), 5 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 9366dc7..679f514 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1066,8 +1066,6 @@ case "${GLIBC_VERSION}" in
+ 	;;
+      2.0|2.1|*)
+ 	AC_MSG_RESULT([unsupported version ${GLIBC_VERSION}])
+-	AC_MSG_ERROR([Valgrind requires glibc version 2.2 or later,])
+-	AC_MSG_ERROR([Darwin libc, Bionic libc or Solaris libc])
+ 	;;
+ esac
+ 
+diff --git a/coregrind/vg_preloaded.c b/coregrind/vg_preloaded.c
+index 2ea7a7a..e49c832 100644
+--- a/coregrind/vg_preloaded.c
++++ b/coregrind/vg_preloaded.c
+@@ -56,7 +56,7 @@
+ void VG_NOTIFY_ON_LOAD(freeres)( void );
+ void VG_NOTIFY_ON_LOAD(freeres)( void )
+ {
+-#  if !defined(__UCLIBC__) \
++#  if !defined(__UCLIBC__) && defined(__GLIBC__) \
+       && !defined(VGPV_arm_linux_android) \
+       && !defined(VGPV_x86_linux_android) \
+       && !defined(VGPV_mips32_linux_android) \
+diff --git a/include/pub_tool_redir.h b/include/pub_tool_redir.h
+index bac00d7..fbb2ef2 100644
+--- a/include/pub_tool_redir.h
++++ b/include/pub_tool_redir.h
+@@ -242,8 +242,7 @@
+ /* --- Soname of the standard C library. --- */
+ 
+ #if defined(VGO_linux) || defined(VGO_solaris)
+-#  define  VG_Z_LIBC_SONAME  libcZdsoZa              // libc.so*
+-
++#  define  VG_Z_LIBC_SONAME  libcZdZa                // libc.*
+ #elif defined(VGO_darwin) && (DARWIN_VERS <= DARWIN_10_6)
+ #  define  VG_Z_LIBC_SONAME  libSystemZdZaZddylib    // libSystem.*.dylib
+ 
+@@ -274,7 +273,11 @@
+ /* --- Soname of the pthreads library. --- */
+ 
+ #if defined(VGO_linux)
++# if defined(__GLIBC__) || defined(__UCLIBC__)
+ #  define  VG_Z_LIBPTHREAD_SONAME  libpthreadZdsoZd0     // libpthread.so.0
++# else
++#  define  VG_Z_LIBPTHREAD_SONAME  libcZdZa              // libc.*
++#endif
+ #elif defined(VGO_darwin)
+ #  define  VG_Z_LIBPTHREAD_SONAME  libSystemZdZaZddylib  // libSystem.*.dylib
+ #elif defined(VGO_solaris)
+-- 
+2.7.1
+
meta/recipes-devtools/valgrind/valgrind_3.11.0.bb +4 -2
index 7ef1e48..7e23240 100644
@@ -23,8 +23,10 @@ SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \
            file://0001-Remove-tests-that-fail-to-build-on-some-PPC32-config.patch \
            file://use-appropriate-march-mcpu-mfpu-for-ARM-test-apps.patch \
            file://avoid-neon-for-targets-which-don-t-support-it.patch \
-           "
-
+"
+SRC_URI_append_libc-musl = "\
+           file://0001-fix-build-for-musl-targets.patch \
+"
 SRC_URI[md5sum] = "4ea62074da73ae82e0162d6550d3f129"
 SRC_URI[sha256sum] = "6c396271a8c1ddd5a6fb9abe714ea1e8a86fce85b30ab26b4266aeb4c2413b42"
 
Signature · 1 line
2.7.1
author
#4 lore raw

PATCH 5/5 binutils: Use tip of 2.26 branch

In reply to Khem Raj

Until 2.26.1 is released there are few fixes which are needed especially when using -fpie, here are changes that are part of this version bump

H.J. Lu (7):
Add a testcase for PR ld/18591
Store estimated distances in compressed_size Remove duplicated marker for 2.26 in gas/NEWS Add -mrelax-relocations= to x86 assembler Mask off the least significant bit in GOT offset Enable -Bsymbolic and -Bsymbolic-functions to PIE Fix a typo in objcopy manual

John David Anglin (1):
Fix /usr/bin/ld: final link failed: File truncated error on hppa

---
 meta/recipes-devtools/binutils/binutils-2.26.inc   |   6 +-
 .../binutils/0001-Generate-relocatable-SDKs.patch  |   6 +-
 ...ure-widen-the-regexp-for-SH-architectures.patch |   8 +-
 .../0003-Point-scripts-location-to-libdir.patch    |   6 +-
 ...te-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch |   6 +-
 .../0005-Explicitly-link-with-libm-on-uclibc.patch |   6 +-
 .../binutils/binutils/0006-Use-libtool-2.4.patch   | 242 ++++++++++-----------
 ...7-Add-the-armv5e-architecture-to-binutils.patch |   6 +-
 ...he-distro-compiler-point-to-the-wrong-ins.patch |   6 +-
 ...es-of-system-directories-when-cross-linki.patch |  16 +-
 ...-rpath-in-libtool-when-sysroot-is-enabled.patch |   6 +-
 ...Change-default-emulation-for-mips64-linux.patch |   6 +-
 ...tch => 0012-Add-support-for-Netlogic-XLP.patch} |  17 +-
 ...ress-computations-in-initial-PLT-entries-.patch |   6 +-
 ...014-Correct-nios2-_gp-address-computation.patch |   6 +-
 15 files changed, 173 insertions(+), 176 deletions(-)
 rename meta/recipes-devtools/binutils/binutils/{0012-Add-XLP-instructions-support.patch => 0012-Add-support-for-Netlogic-XLP.patch} (97%)
meta/recipes-devtools/binutils/binutils-2.26.inc +3 -3
index dd5c8ca..6d535fc 100644
@@ -18,7 +18,7 @@ BINUPV = "${@binutils_branch_version(d)}"
 
 UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)"
 
-SRCREV = "3c9d874373f2189cb704999b0ba39b9bbca91a61"
+SRCREV = "71fa566a9cf2597b60a58c1d7c148bab637454a6"
 SRC_URI = "\
      git://sourceware.org/git/binutils-gdb.git;branch=binutils-${BINUPV}-branch;protocol=git \
      file://0002-configure-widen-the-regexp-for-SH-architectures.patch \
@@ -31,10 +31,10 @@ SRC_URI = "\
      file://0009-warn-for-uses-of-system-directories-when-cross-linki.patch \
      file://0010-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch \
      file://0011-Change-default-emulation-for-mips64-linux.patch \
-     file://0012-Add-XLP-instructions-support.patch \
+     file://0012-Add-support-for-Netlogic-XLP.patch \
      file://0013-Fix-GOT-address-computations-in-initial-PLT-entries-.patch \
      file://0014-Correct-nios2-_gp-address-computation.patch \
-     "
+"
 S  = "${WORKDIR}/git"
 
 do_configure_prepend () {
meta/recipes-devtools/binutils/binutils/0001-Generate-relocatable-SDKs.patch +3 -3
index f5cffff..91f9017 100644
@@ -1,7 +1,7 @@
-From c2263f6e910f43637fb514de5c48e9ce6a8d55f1 Mon Sep 17 00:00:00 2001
+From 3c75355342a8562ccb65b8bbbe81a0495fec5c57 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:58:54 +0000
-Subject: [PATCH 01/12] Generate relocatable SDKs
+Subject: [PATCH 01/14] Generate relocatable SDKs
 
 This patch will modify the ELF linker scripts so that the crosssdk
 linker will generate binaries with a 4096 bytes PT_INTERP section. When the binaries
@@ -58,5 +58,5 @@ index ec78c90..f9e7a31 100644
  if test -z "$PLT"; then
    IPLT=".iplt         ${RELOCATING-0} : { *(.iplt) }"
 -- 
-2.7.0
+2.7.1
 
meta/recipes-devtools/binutils/binutils/0002-configure-widen-the-regexp-for-SH-architectures.patch +4 -4
index 83995c4..4a202d0 100644
@@ -1,7 +1,7 @@
-From 301ad846e3a3ea0b49243c6276aa7dcc3fa5cc59 Mon Sep 17 00:00:00 2001
+From b1ae604880562ed065f614a745d3f8922838bc5a Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:07:33 +0000
-Subject: [PATCH 02/12] configure: widen the regexp for SH architectures
+Subject: [PATCH 02/14] configure: widen the regexp for SH architectures
 
 gprof needs to know about uclibc
 
@@ -36,7 +36,7 @@ index 34b66f7..85414ab 100755
        sh*-*-elf)
           ;;
 diff --git a/gprof/configure b/gprof/configure
-index 2702da1..7dcd141 100755
+index 693b927..d4db554 100755
 --- a/gprof/configure
 +++ b/gprof/configure
 @@ -5869,6 +5869,11 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
@@ -52,5 +52,5 @@ index 2702da1..7dcd141 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.7.0
+2.7.1
 
meta/recipes-devtools/binutils/binutils/0003-Point-scripts-location-to-libdir.patch +3 -3
index 935f949..2c70ecd 100644
@@ -1,7 +1,7 @@
-From 887db9238821b4f1f5f469f9c825ed9b2e2dc719 Mon Sep 17 00:00:00 2001
+From 01808e8ef8ee709c8218d962601c18a63a063a1f Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:09:58 +0000
-Subject: [PATCH 03/12] Point scripts location to libdir
+Subject: [PATCH 03/14] Point scripts location to libdir
 
 Upstream-Status: Inappropriate [debian patch]
 
@@ -38,5 +38,5 @@ index ed98f87..530e4c9 100644
  BFDDIR = $(BASEDIR)/bfd
  INCDIR = $(BASEDIR)/include
 -- 
-2.7.0
+2.7.1
 
meta/recipes-devtools/binutils/binutils/0004-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch +3 -3
index fb9bbd6..8f0a402 100644
@@ -1,7 +1,7 @@
-From 0d76940b5507406719635ee154a29e80a8cb1234 Mon Sep 17 00:00:00 2001
+From c008c7f97c1cf487749c6c375820a1f3b3c6c53d Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:27:17 +0000
-Subject: [PATCH 04/12] Only generate an RPATH entry if LD_RUN_PATH is not
+Subject: [PATCH 04/14] Only generate an RPATH entry if LD_RUN_PATH is not
  empty
 
 for cases where -rpath isn't specified. debian (#151024)
@@ -37,5 +37,5 @@ index 0405d4f..73c5447 100644
    for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next)
      if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
 -- 
-2.7.0
+2.7.1
 
meta/recipes-devtools/binutils/binutils/0005-Explicitly-link-with-libm-on-uclibc.patch +3 -3
index 9111abf..92ead7f 100644
@@ -1,7 +1,7 @@
-From 589cc10e54b95607d2728ee37e9387140bf5eb32 Mon Sep 17 00:00:00 2001
+From 6a41635e29c4a6c064b1f66e79a8fe2026f4361b Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:32:49 +0000
-Subject: [PATCH 05/12] Explicitly link with libm on uclibc
+Subject: [PATCH 05/14] Explicitly link with libm on uclibc
 
 Description:
 
@@ -48,5 +48,5 @@ index 0b490d4..086e0d2 100644
    aarch64 | alpha | arm | i386 | ia64 | microblaze | mips | ns32k | or1k | or1knd | pdp11 | ppc | sparc | z80 | z8k)
      bfd_gas=yes
 -- 
-2.7.0
+2.7.1
 
meta/recipes-devtools/binutils/binutils/0006-Use-libtool-2.4.patch +121 -121

942 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/0007-Add-the-armv5e-architecture-to-binutils.patch +3 -3
index 0319ba6..cb3f83b 100644
@@ -1,7 +1,7 @@
-From 61789a45c6193519b9da9dd0fa9a94532faaa4a9 Mon Sep 17 00:00:00 2001
+From 4ff9dbe13f38e4fea24fbcc9879cf7352c0561ff Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:37:10 +0000
-Subject: [PATCH 07/12] Add the armv5e architecture to binutils
+Subject: [PATCH 07/14] Add the armv5e architecture to binutils
 
 Binutils has a comment that indicates it is supposed to match gcc for
 all of the support "-march=" settings, but it was lacking the armv5e setting.
@@ -31,5 +31,5 @@ index 3bd4bc9..5d99921 100644
    ARM_ARCH_OPT ("armv5txm",	ARM_ARCH_V5TxM,	 FPU_ARCH_VFP),
    ARM_ARCH_OPT ("armv5te",	ARM_ARCH_V5TE,	 FPU_ARCH_VFP),
 -- 
-2.7.0
+2.7.1
 
meta/recipes-devtools/binutils/binutils/0008-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch +3 -3
index ad1901e..f8382f8 100644
@@ -1,7 +1,7 @@
-From 0ccefb615b5316e71c1ed9bab80aa4eafb26167a Mon Sep 17 00:00:00 2001
+From cb36d94dbd521752e6444418af500e139a26eabb Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:39:01 +0000
-Subject: [PATCH 08/12] don't let the distro compiler point to the wrong
+Subject: [PATCH 08/14] don't let the distro compiler point to the wrong
  installation location
 
 Thanks to RP for helping find the source code causing the issue.
@@ -31,5 +31,5 @@ index 7d7e2f4..1aaaf0e 100644
  	if test -n "${target_header_dir}"; then \
  		${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR); \
 -- 
-2.7.0
+2.7.1
 
meta/recipes-devtools/binutils/binutils/0009-warn-for-uses-of-system-directories-when-cross-linki.patch +8 -8
index b14ead0..d3f510b 100644
@@ -1,7 +1,7 @@
-From e5d18410cb07da09f854b9568f51a873f1166d2a Mon Sep 17 00:00:00 2001
+From 4daa841ce16ba52b717bdff9eb1dfc4f19638814 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Fri, 15 Jan 2016 06:31:09 +0000
-Subject: [PATCH 09/12] warn for uses of system directories when cross linking
+Subject: [PATCH 09/14] warn for uses of system directories when cross linking
 
 2008-07-02  Joseph Myers  <[email protected]>
 
@@ -77,7 +77,7 @@ index 276fb77..35c58eb 100644
  #undef EXTRA_SHLIB_EXTENSION
  
 diff --git a/ld/configure b/ld/configure
-index 7a20e4e..7cff36c 100755
+index eb4f0d7..e9054b4 100755
 --- a/ld/configure
 +++ b/ld/configure
 @@ -790,6 +790,7 @@ with_lib_path
@@ -118,7 +118,7 @@ index 7a20e4e..7cff36c 100755
  if test "${enable_gold+set}" = set; then :
    enableval=$enable_gold; case "${enableval}" in
 diff --git a/ld/configure.ac b/ld/configure.ac
-index 188172d..2cd8443 100644
+index e28f38e..7b474e7 100644
 --- a/ld/configure.ac
 +++ b/ld/configure.ac
 @@ -95,6 +95,16 @@ AC_SUBST(use_sysroot)
@@ -158,10 +158,10 @@ index d84ec4e..3476b26 100644
    enum endian_enum endian;
  
 diff --git a/ld/ld.texinfo b/ld/ld.texinfo
-index 1dd7492..fb1438e 100644
+index 2389661..d06112b 100644
 --- a/ld/ld.texinfo
 +++ b/ld/ld.texinfo
-@@ -2332,6 +2332,18 @@ string identifying the original linked file does not change.
+@@ -2338,6 +2338,18 @@ string identifying the original linked file does not change.
  
  Passing @code{none} for @var{style} disables the setting from any
  @code{--build-id} options earlier on the command line.
@@ -235,7 +235,7 @@ index bb0b9cc..a23c56c 100644
    /* We initialize DEMANGLING based on the environment variable
       COLLECT_NO_DEMANGLE.  The gcc collect2 program will demangle the
 diff --git a/ld/lexsup.c b/ld/lexsup.c
-index 4cad209..173b17f 100644
+index e2fb212..a2064f1 100644
 --- a/ld/lexsup.c
 +++ b/ld/lexsup.c
 @@ -530,6 +530,14 @@ static const struct ld_option ld_options[] =
@@ -269,5 +269,5 @@ index 4cad209..173b17f 100644
      }
  
 -- 
-2.7.0
+2.7.1
 
meta/recipes-devtools/binutils/binutils/0010-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch +3 -3
index 49b19e9..4074241 100644
@@ -1,7 +1,7 @@
-From eff00547a91cad0b8ee9bf5b6030dfa48a5ea6ae Mon Sep 17 00:00:00 2001
+From bb9eb09411ddcef515f0f7ad7c29214b0766e960 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:42:38 +0000
-Subject: [PATCH 10/12] Fix rpath in libtool when sysroot is enabled
+Subject: [PATCH 10/14] Fix rpath in libtool when sysroot is enabled
 
 Enabling sysroot support in libtool exposed a bug where the final
 library had an RPATH encoded into it which still pointed to the
@@ -48,5 +48,5 @@ index 70e856e..11ee684 100644
  	    if test -z "$hardcode_libdirs"; then
  	      hardcode_libdirs="$libdir"
 -- 
-2.7.0
+2.7.1
 
meta/recipes-devtools/binutils/binutils/0011-Change-default-emulation-for-mips64-linux.patch +3 -3
index 905b7b3..c0d2d71 100644
@@ -1,7 +1,7 @@
-From b0bcabc83ba02f984d8c87d612c115c9ab7a9fce Mon Sep 17 00:00:00 2001
+From af1b4ee69b4fd617b88127ed40c3ca7351a9532f Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 2 Mar 2015 01:44:14 +0000
-Subject: [PATCH 11/12] Change default emulation for mips64*-*-linux
+Subject: [PATCH 11/14] Change default emulation for mips64*-*-linux
 
 we change the default emulations to be N64 instead of N32
 
@@ -55,5 +55,5 @@ index 6b6bbf2..b45b1e5 100644
  mips*el-*-linux-*)	targ_emul=elf32ltsmip
  			targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
 -- 
-2.7.0
+2.7.1
 
meta/recipes-devtools/binutils/binutils/0012-Add-support-for-Netlogic-XLP.patch renamed from meta/recipes-devtools/binutils/binutils/0012-Add-XLP-instructions-support.patch +7 -10
similarity index 97%
rename from meta/recipes-devtools/binutils/binutils/0012-Add-XLP-instructions-support.patch
rename to meta/recipes-devtools/binutils/binutils/0012-Add-support-for-Netlogic-XLP.patch
index 01492b5..af7f12f 100644
@@ -1,12 +1,9 @@
-From 10e0f42d258164a6a8c0c733518c79e114f5d702 Mon Sep 17 00:00:00 2001
+From 9f967c555b3fda64af4549ae252a0fba00120529 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
-Date: Fri, 15 Jan 2016 06:37:20 +0000
-Subject: [PATCH 12/12] Add XLP instructions support
+Date: Sun, 14 Feb 2016 17:06:19 +0000
+Subject: [PATCH 12/14] Add support for Netlogic XLP
 
-From 26adb06ce515aadfec08ce13109b4b98287f677b Mon Sep 17 00:00:00 2001
-From: Nebu Philips <[email protected]>
-Date: Fri, 30 Jul 2010 15:10:03 -0700
-Subject: [PATCH] Add support for Netlogic XLP
+Patch From: Nebu Philips <[email protected]>
 
 Using the mipsisa64r2nlm target, add support for XLP from
 Netlogic. Also, update vendor name to NLM wherever applicable.
@@ -188,10 +185,10 @@ index a2d45a4..75902c0 100644
    /* i6400.  */
    { "i6400",	      0, ASE_MSA,		ISA_MIPS64R6, CPU_MIPS64R6},
 diff --git a/gas/configure b/gas/configure
-index 1c2a665..c8010a8 100755
+index 89f18b3..86b19ae 100755
 --- a/gas/configure
 +++ b/gas/configure
-@@ -12826,6 +12826,9 @@ _ACEOF
+@@ -12851,6 +12851,9 @@ _ACEOF
  	  mipsisa64r6 | mipsisa64r6el)
  	    mips_cpu=mips64r6
  	    ;;
@@ -412,5 +409,5 @@ index 402f887..3764836 100644
  {"swc0",		"E,A(b)",	0,    (int) M_SWC0_AB,	INSN_MACRO,		0,		I1,		0,	IOCT|IOCTP|IOCT2|I37 },
  {"swc1",		"T,o(b)",	0xe4000000, 0xfc000000,	RD_1|RD_3|SM|FP_S,	0,		I1,		0,	0 },
 -- 
-2.7.0
+2.7.1
 
meta/recipes-devtools/binutils/binutils/0013-Fix-GOT-address-computations-in-initial-PLT-entries-.patch +3 -3
index a62b519..24af120 100644
@@ -1,7 +1,7 @@
-From 45490ccc18bbb518550209c38b2278b04703c183 Mon Sep 17 00:00:00 2001
+From 9619a608528383a44ccc1637ae939b5f3e97adc5 Mon Sep 17 00:00:00 2001
 From: Sandra Loosemore <[email protected]>
 Date: Wed, 9 Dec 2015 16:13:58 -0800
-Subject: [PATCH 1/2] Fix GOT address computations in initial PLT entries for
+Subject: [PATCH 13/14] Fix GOT address computations in initial PLT entries for
  nios2.
 
 2015-12-09  Sandra Loosemore  <[email protected]>
@@ -68,5 +68,5 @@ index 6b29d8b..1c54320 100644
  	}
      }
 -- 
-2.7.0
+2.7.1
 
meta/recipes-devtools/binutils/binutils/0014-Correct-nios2-_gp-address-computation.patch +3 -3
index 7a4c1db..86eeded 100644
@@ -1,7 +1,7 @@
-From fcf984ae68c89e5495e65fe6456650cc014b5ea7 Mon Sep 17 00:00:00 2001
+From 27f155fd0ab4ba954366643dbfdc3c7104933794 Mon Sep 17 00:00:00 2001
 From: Sandra Loosemore <[email protected]>
 Date: Sun, 27 Dec 2015 12:30:26 -0800
-Subject: [PATCH 2/2] Correct nios2 _gp address computation.
+Subject: [PATCH 14/14] Correct nios2 _gp address computation.
 
 2015-12-27  Sandra Loosemore  <[email protected]>
 
@@ -102,5 +102,5 @@ index 1c54320..babecf3 100644
  	    case R_NIOS2_UJMP:
  	      r = nios2_elf32_do_ujmp_relocate (input_bfd, howto,
 -- 
-2.7.0
+2.7.1
 
Signature · 1 line
2.7.1
#5 lore raw

Re: [PATCH 5/5] binutils: Use tip of 2.26 branch

Quoted 13 lines · Khem Raj

Until 2.26.1 is released there are few fixes which are needed especially
when using -fpie, here are changes that are part of this version bump

H.J. Lu (7):
Add a testcase for PR ld/18591
Store estimated distances in compressed_size Remove duplicated marker for 2.26 in gas/NEWS Add -mrelax-relocations= to x86 assembler Mask off the least significant bit in GOT offset Enable -Bsymbolic and -Bsymbolic-functions to PIE Fix a typo in objcopy manual

Quoted 3 lines

John David Anglin (1):
Fix /usr/bin/ld: final link failed: File truncated error on
hppa

I think this is resulting in:

https://autobuilder.yoctoproject.org/main/builders/nightly-arm-lsb/buil
ds/625/steps/BuildImages_1/logs/stdio

and

https://autobuilder.yoctoproject.org/main/builders/nightly-fsl-arm-lsb/
builds/638/steps/BuildImages_1/logs/stdio

where config.log in one case says:

configure:4407: checking for C compiler default output file name
configure:4429: arm-poky-linux-gnueabi-gcc -fstack-protector-strong -pie -fpie -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types --sysroot=/home/pokybuild/yoc to-autobuilder/yocto-worker/nightly-arm-lsb/build/build/tmp/sysroots/beaglebone -O2 -pipe -g -feliminate-unused-debug-types -fstack-protector-strong -pie -fpie -D_FORTIFY_S
OURCE=2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c >&5 /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm-lsb/build/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.3.0/ld:
error: a.out uses VFP register arguments, /tmp/ccbzGaSi.o does not /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm-lsb/build/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.3.0/ld: failed to merge target specific data of file /tmp/ccbzGaSi.o
collect2: error: ld returned 1 exit status

Cheers,

Richard

author
#6 lore raw

Re: [PATCH 5/5] binutils: Use tip of 2.26 branch

Quoted 30 lines · Richard Purdie
Quoted 13 lines · Khem Raj

Until 2.26.1 is released there are few fixes which are needed especially
when using -fpie, here are changes that are part of this version bump

H.J. Lu (7):
Add a testcase for PR ld/18591
Store estimated distances in compressed_size Remove duplicated marker for 2.26 in gas/NEWS Add -mrelax-relocations= to x86 assembler Mask off the least significant bit in GOT offset Enable -Bsymbolic and -Bsymbolic-functions to PIE Fix a typo in objcopy manual

Quoted 3 lines

John David Anglin (1):
Fix /usr/bin/ld: final link failed: File truncated error on
hppa

I think this is resulting in:

https://autobuilder.yoctoproject.org/main/builders/nightly-arm-lsb/buil
ds/625/steps/BuildImages_1/logs/stdio

and

https://autobuilder.yoctoproject.org/main/builders/nightly-fsl-arm-lsb/
builds/638/steps/BuildImages_1/logs/stdio

where config.log in one case says:

Quoted 8 lines

configure:4407: checking for C compiler default output file name
configure:4429: arm-poky-linux-gnueabi-gcc -fstack-protector-strong -pie -fpie -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types --sysroot=/home/pokybuild/yoc to-autobuilder/yocto-worker/nightly-arm-lsb/build/build/tmp/sysroots/beaglebone -O2 -pipe -g -feliminate-unused-debug-types -fstack-protector-strong -pie -fpie -D_FORTIFY_S
OURCE=2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c >&5 /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm-lsb/build/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.3.0/ld:
error: a.out uses VFP register arguments, /tmp/ccbzGaSi.o does not /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm-lsb/build/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.3.0/ld: failed to merge target specific data of file /tmp/ccbzGaSi.o
collect2: error: ld returned 1 exit status

yeah, it means we need to add in the variable which sets -mfloat-abi into CC as well since we are using callconvention-hard here. I will send a v2 soon.

Quoted 4 lines

Cheers,

Richard

author
#7 lore raw

Re: [PATCH 5/5] binutils: Use tip of 2.26 branch

Quoted 41 lines · Khem Raj
Quoted 30 lines · Richard Purdie
Quoted 13 lines · Khem Raj

Until 2.26.1 is released there are few fixes which are needed especially
when using -fpie, here are changes that are part of this version bump

H.J. Lu (7):
Add a testcase for PR ld/18591
Store estimated distances in compressed_size Remove duplicated marker for 2.26 in gas/NEWS Add -mrelax-relocations= to x86 assembler Mask off the least significant bit in GOT offset Enable -Bsymbolic and -Bsymbolic-functions to PIE Fix a typo in objcopy manual

Quoted 3 lines

John David Anglin (1):
Fix /usr/bin/ld: final link failed: File truncated error on
hppa

I think this is resulting in:

https://autobuilder.yoctoproject.org/main/builders/nightly-arm-lsb/buil
ds/625/steps/BuildImages_1/logs/stdio

and

https://autobuilder.yoctoproject.org/main/builders/nightly-fsl-arm-lsb/
builds/638/steps/BuildImages_1/logs/stdio

where config.log in one case says:

Quoted 8 lines

configure:4407: checking for C compiler default output file name
configure:4429: arm-poky-linux-gnueabi-gcc -fstack-protector-strong -pie -fpie -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types --sysroot=/home/pokybuild/yoc to-autobuilder/yocto-worker/nightly-arm-lsb/build/build/tmp/sysroots/beaglebone -O2 -pipe -g -feliminate-unused-debug-types -fstack-protector-strong -pie -fpie -D_FORTIFY_S
OURCE=2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c >&5 /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm-lsb/build/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.3.0/ld:
error: a.out uses VFP register arguments, /tmp/ccbzGaSi.o does not /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm-lsb/build/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.3.0/ld: failed to merge target specific data of file /tmp/ccbzGaSi.o
collect2: error: ld returned 1 exit status

Quoted 3 lines

yeah, it means we need to add in the variable which sets -mfloat-abi into CC as well since we are using callconvention-hard here. I will send a v2 soon.

I posted a V2 to fix this issue. However this patch is not the cause. Its the security flags patch which is causing it. So v2 is posted for that patch
see
http://lists.openembedded.org/pipermail/openembedded-core/2016-February/117564.html

#8 lore raw

Re: [PATCH 5/5] binutils: Use tip of 2.26 branch

Quoted 63 lines · Khem Raj
Quoted 53 lines · Khem Raj
Quoted 51 lines · Richard Purdie
Quoted 14 lines · Khem Raj

Until 2.26.1 is released there are few fixes which are needed especially
when using -fpie, here are changes that are part of this version bump

H.J. Lu (7):
Add a testcase for PR ld/18591
Store estimated distances in compressed_size Remove duplicated marker for 2.26 in gas/NEWS Add -mrelax-relocations= to x86 assembler Mask off the least significant bit in GOT offset Enable -Bsymbolic and -Bsymbolic-functions to PIE Fix a typo in objcopy manual

Quoted 4 lines

John David Anglin (1):
Fix /usr/bin/ld: final link failed: File truncated error
on
hppa

I think this is resulting in:

https://autobuilder.yoctoproject.org/main/builders/nightly-arm-ls
b/buil
ds/625/steps/BuildImages_1/logs/stdio

and

https://autobuilder.yoctoproject.org/main/builders/nightly-fsl-ar
m-lsb/
builds/638/steps/BuildImages_1/logs/stdio

where config.log in one case says:

configure:4407: checking for C compiler default output file name configure:4429: arm-poky-linux-gnueabi-gcc -fstack-protector

(quoted diff) +0 -2
-strong -pie -fpie -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate
-unused-debug-types --sysroot=/home/pokybuild/yoc

to-autobuilder/yocto-worker/nightly-arm

(quoted diff) +0 -3
-lsb/build/build/tmp/sysroots/beaglebone  -O2 -pipe -g 
-feliminate-unused-debug-types -fstack-protector-strong -pie 
-fpie -D_FORTIFY_S

OURCE=2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack -protector-strong -Wl,-z,relro,-z,now conftest.c >&5 /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm

(quoted diff) +0 -2
-lsb/build/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky
-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.3.0/ld:

error: a.out uses VFP register arguments, /tmp/ccbzGaSi.o does not /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm -lsb/build/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky

Quoted 8 lines
Quoted 3 lines

-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.3.0/ld: failed to merge target specific data of file /tmp/ccbzGaSi.o
collect2: error: ld returned 1 exit status

yeah, it means we need to add in the variable which sets -mfloat -abi
into CC as well since we are using callconvention-hard here. I will send a v2 soon.

Quoted 6 lines

I posted a V2 to fix this issue. However this patch is not the cause. Its the security flags patch which is causing it. So v2 is posted for that patch
see
http://lists.openembedded.org/pipermail/openembedded-core/2016-Februa
ry/117564.html

I guessed at the wrong patch, sorry :). I'd removed both until this was figured out, I've put this and the v2 of the other patch into -next, thanks.

Cheers,

Richard