gdb/binutils minor upgrades and misc
cover gdb/binutils minor upgrades and misc
This patchset has following
gdb minor upgrade to 7.9.1
binutils move to latest tip on 2.25 stable branch, it gets
the issue where copy relocations against protected symbols don't work with bfd ld and gcc 5.0 on x86/x86-64 it could help with remaining build problem with gcc5 seen on x86/x86-64 this also helps musl based systems which suffer from same issue with gcc-5. This patch needs some runtime testing with gcc 4.9 though
glibc patch is needed for non glibc libcs to be able to build in OE-core currently its broken for uclibc and musl
Runqemu patch is required for newer versions of wayland/weston to work after switching to libinput. I have tested it on weston/wayaland and on x11/gnome image it worked ok.
alsa-plugins is a build break fix
openssl is a refresh of the last patch as a upstream backport no functional change
Khem Raj (6):
glibc: ignore for musl/uclibc but only for target recipes
runqemu-internal: Replace wacom-tablet with tablet for usbdevice
openssl: Backport upstreamed version of patch to fix build on mips64
alsa-plugins: Install 99-pulseaudio-default.conf when pulseaudio is
enabled
gdb: Minor upgrade to 7.9.1
binutils: Update to tip of 2.25 branch
...ine-GCC_VERSION-macro-to-cover-upto-gcc-5.patch | 53 ----------------------
...lcl.h-fix-MIPS-specific-gcc-version-check.patch | 30 ++++++++++++
.../recipes-connectivity/openssl/openssl_1.0.2a.bb | 2 +-
meta/recipes-core/glibc/glibc-collateral.inc | 3 ++
meta/recipes-core/glibc/glibc_2.21.bb | 9 ++--
meta/recipes-devtools/binutils/binutils-2.25.inc | 4 +-
...-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch} | 0
.../gdb/{gdb-7.9.inc => gdb-7.9.1.inc} | 4 +-
...canadian_7.9.bb => gdb-cross-canadian_7.9.1.bb} | 0
.../gdb/{gdb-cross_7.9.bb => gdb-cross_7.9.1.bb} | 0
meta/recipes-devtools/gdb/gdb.inc | 1 -
...0001-make-man-install-relative-to-DESTDIR.patch | 2 +-
.../gdb/gdb/0002-Change-order-of-CFLAGS.patch | 2 +-
...d-support-for-Renesas-SH-sh4-architecture.patch | 2 +-
.../gdb/0004-Change-comment-in-gdb-compile.patch | 48 --------------------
.../gdb/{gdb_7.9.bb => gdb_7.9.1.bb} | 0
.../recipes-multimedia/alsa/alsa-plugins_1.0.29.bb | 4 +-
scripts/runqemu-internal | 4 +-
18 files changed, 49 insertions(+), 119 deletions(-)
delete mode 100644 meta/recipes-connectivity/openssl/openssl/0001-Define-GCC_VERSION-macro-to-cover-upto-gcc-5.patch
create mode 100644 meta/recipes-connectivity/openssl/openssl/0001-bn-bn_lcl.h-fix-MIPS-specific-gcc-version-check.patch
rename meta/recipes-devtools/binutils/binutils/{0001-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch => 0014-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch} (100%)
rename meta/recipes-devtools/gdb/{gdb-7.9.inc => gdb-7.9.1.inc} (68%)
rename meta/recipes-devtools/gdb/{gdb-cross-canadian_7.9.bb => gdb-cross-canadian_7.9.1.bb} (100%)
rename meta/recipes-devtools/gdb/{gdb-cross_7.9.bb => gdb-cross_7.9.1.bb} (100%)
delete mode 100644 meta/recipes-devtools/gdb/gdb/0004-Change-comment-in-gdb-compile.patch
rename meta/recipes-devtools/gdb/{gdb_7.9.bb => gdb_7.9.1.bb} (100%)Signature · 1 line
2.1.4
PATCH 1/6 glibc: ignore for musl/uclibc but only for target recipes
we still need nativesdk or native recipes for libc to come from glibc, but only be ignored for target recipes types
--- meta/recipes-core/glibc/glibc-collateral.inc | 3 +++ meta/recipes-core/glibc/glibc_2.21.bb | 9 +++------ 2 files changed, 6 insertions(+), 6 deletions(-)
meta/recipes-core/glibc/glibc-collateral.inc +3 -0
@@ -17,3 +17,6 @@ do_compile[noexec] = "1" do_install[depends] += "virtual/${MLPREFIX}libc:do_populate_sysroot" +COMPATIBLE_HOST_libc-musl_class-target = "null" +COMPATIBLE_HOST_libc-uclibc_class-target = "null" +
meta/recipes-core/glibc/glibc_2.21.bb +3 -6
@@ -69,14 +69,11 @@ TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir}" GLIBC_BROKEN_LOCALES = " _ER _ET so_ET yn_ER sid_ET tr_TR mn_MN gez_ET gez_ER bn_BD te_IN es_CR.ISO-8859-1" # -# We will skip parsing glibc when system C library selection is not glibc +# We will skip parsing glibc when target system C library selection is not glibc # this helps in easing out parsing for non-glibc system libraries # -python __anonymous () { - if d.getVar('TCLIBC', True) != "glibc": - raise bb.parse.SkipPackage("incompatible with %s C library" % - d.getVar('TCLIBC', True)) -} +COMPATIBLE_HOST_libc-musl_class-target = "null" +COMPATIBLE_HOST_libc-uclibc_class-target = "null" EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \ --without-cvs --disable-profile \
Signature · 1 line
2.1.4
PATCH 2/6 runqemu-internal: Replace wacom-tablet with tablet for usbdevice
When booting weston-core-image with latest wayland/weston/libinput mouse/touchpad would not work on qemux86, this fixes the issue
--- scripts/runqemu-internal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/runqemu-internal +2 -2
@@ -119,7 +119,7 @@ ORIG_STTY=$(stty -g) if [ "$SLIRP_ENABLED" = "yes" ]; then KERNEL_NETWORK_CMD="ip=dhcp" QEMU_TAP_CMD="" - QEMU_UI_OPTIONS="-show-cursor -usb -usbdevice wacom-tablet" + QEMU_UI_OPTIONS="-show-cursor -usb -usbdevice tablet" if [ "$KVM_ACTIVE" = "yes" ]; then QEMU_NETWORK_CMD="" DROOT="/dev/vda"
@@ -274,7 +274,7 @@ else fi KERNCMDLINE="mem=$QEMU_MEMORY" - QEMU_UI_OPTIONS="-show-cursor -usb -usbdevice wacom-tablet" + QEMU_UI_OPTIONS="-show-cursor -usb -usbdevice tablet" if [ $MACHINE = 'qemuarm64' ]; then QEMU_UI_OPTIONS="-nographic" fi
Signature · 1 line
2.1.4
PATCH 3/6 openssl: Backport upstreamed version of patch to fix build on mips64
In reply to Khem RajPrevious patch had a concern as well and this is a direct backport of the patch fixing the problem.
--- ...ine-GCC_VERSION-macro-to-cover-upto-gcc-5.patch | 53 ---------------------- ...lcl.h-fix-MIPS-specific-gcc-version-check.patch | 30 ++++++++++++ .../recipes-connectivity/openssl/openssl_1.0.2a.bb | 2 +- 3 files changed, 31 insertions(+), 54 deletions(-) delete mode 100644 meta/recipes-connectivity/openssl/openssl/0001-Define-GCC_VERSION-macro-to-cover-upto-gcc-5.patch create mode 100644 meta/recipes-connectivity/openssl/openssl/0001-bn-bn_lcl.h-fix-MIPS-specific-gcc-version-check.patch
meta/recipes-connectivity/openssl/openssl/0001-Define-GCC_VERSION-macro-to-cover-upto-gcc-5.patch deleted +0 -53
@@ -1,53 +0,0 @@ -From 0aa68f7681a74f6ff80a80c5843bc35e5effffb9 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Fri, 22 May 2015 12:43:39 -0700 -Subject: [PATCH] Define GCC_VERSION macro to cover upto gcc-5 - -Current check is limited to gcc 4 with minor versions -but when we use gcc 5.1, then minor version check fails -with current setup and we end up with build errors like - -| In file included from bn_div.c:62:0: -| bn_div.c: In function 'BN_div': -| bn_lcl.h:311:9: error: impossible constraint in 'asm' -| asm ("dmultu %2,%3" \ -| ^ -| bn_div.c:402:13: note: in expansion of macro 'BN_UMULT_LOHI' -| BN_UMULT_LOHI(t2l, t2h, d1, q); -| ^ -| <builtin>: recipe for target 'bn_div.o' failed -| make[2]: *** [bn_div.o] Error 1 - -Signed-off-by: Khem Raj <[email protected]> - ---- -Upstream-Status: [Submitted] - crypto/bn/bn_lcl.h | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/crypto/bn/bn_lcl.h b/crypto/bn/bn_lcl.h -index 196df7e..e801ba7 100644 ---- a/crypto/bn/bn_lcl.h -+++ b/crypto/bn/bn_lcl.h -@@ -118,6 +118,9 @@ - extern "C" { - #endif - -+#define GCC_VERSION (__GNUC__ * 10000 \ -+ + __GNUC_MINOR__ * 100 \ -+ + __GNUC_PATCHLEVEL__) - /*- - * Bignum consistency macros - * There is one "API" macro, bn_fix_top(), for stripping leading zeroes from -@@ -443,7 +446,7 @@ unsigned __int64 _umul128(unsigned __int64 a, unsigned __int64 b, - # endif - # elif defined(__mips) && (defined(SIXTY_FOUR_BIT) || defined(SIXTY_FOUR_BIT_LONG)) - # if defined(__GNUC__) && __GNUC__>=2 --# if __GNUC__>=4 && __GNUC_MINOR__>=4 -+# if GCC_VERSION > 40400 - /* "h" constraint is no more since 4.4 */ - # define BN_UMULT_HIGH(a,b) (((__uint128_t)(a)*(b))>>64) - # define BN_UMULT_LOHI(low,high,a,b) ({ \ --- -2.1.4 -
meta/recipes-connectivity/openssl/openssl/0001-bn-bn_lcl.h-fix-MIPS-specific-gcc-version-check.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 60c268b21ac81cc6b1af5c5470282a613b96f6fd Mon Sep 17 00:00:00 2001 +From: Andy Polyakov <[email protected]> +Date: Mon, 25 May 2015 10:17:14 +0200 +Subject: [PATCH] bn/bn_lcl.h: fix MIPS-specific gcc version check. + +RT#3859 + +Reviewed-by: Tim Hudson <[email protected]> +--- +Upstream-Status: Backport + + crypto/bn/bn_lcl.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/crypto/bn/bn_lcl.h b/crypto/bn/bn_lcl.h +index 196df7e..b9d124a 100644 +--- a/crypto/bn/bn_lcl.h ++++ b/crypto/bn/bn_lcl.h +@@ -443,7 +443,7 @@ unsigned __int64 _umul128(unsigned __int64 a, unsigned __int64 b, + # endif + # elif defined(__mips) && (defined(SIXTY_FOUR_BIT) || defined(SIXTY_FOUR_BIT_LONG)) + # if defined(__GNUC__) && __GNUC__>=2 +-# if __GNUC__>=4 && __GNUC_MINOR__>=4 ++# if __GNUC__>4 || (__GNUC__>=4 && __GNUC_MINOR__>=4) + /* "h" constraint is no more since 4.4 */ + # define BN_UMULT_HIGH(a,b) (((__uint128_t)(a)*(b))>>64) + # define BN_UMULT_LOHI(low,high,a,b) ({ \ +-- +2.1.4 +
meta/recipes-connectivity/openssl/openssl_1.0.2a.bb +1 -1
@@ -36,7 +36,7 @@ SRC_URI += "file://configure-targets.patch \ file://ptest-deps.patch \ file://run-ptest \ file://crypto_use_bigint_in_x86-64_perl.patch \ - file://0001-Define-GCC_VERSION-macro-to-cover-upto-gcc-5.patch \ + file://0001-bn-bn_lcl.h-fix-MIPS-specific-gcc-version-check.patch \ " SRC_URI[md5sum] = "a06c547dac9044161a477211049f60ef"
Signature · 1 line
2.1.4
PATCH 4/6 alsa-plugins: Install 99-pulseaudio-default.conf when pulseaudio is enabled
In reply to Khem RajThe source file does not exist when pluseaudio is disabled
--- meta/recipes-multimedia/alsa/alsa-plugins_1.0.29.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-multimedia/alsa/alsa-plugins_1.0.29.bb +3 -1
@@ -50,7 +50,9 @@ do_install_append() { rm ${D}${libdir}/alsa-lib/*.la # We use the example as is, so just drop the .example suffix. - mv ${D}${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf.example ${D}${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf + if [ "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', 'yes', 'no', d)}" = "yes" ]; then + mv ${D}${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf.example ${D}${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf + fi } python populate_packages_prepend() {
Signature · 1 line
2.1.4
PATCH 5/6 gdb: Minor upgrade to 7.9.1
In reply to Khem RajDrop backported patches
---
.../gdb/{gdb-7.9.inc => gdb-7.9.1.inc} | 4 +-
...canadian_7.9.bb => gdb-cross-canadian_7.9.1.bb} | 0
.../gdb/{gdb-cross_7.9.bb => gdb-cross_7.9.1.bb} | 0
meta/recipes-devtools/gdb/gdb.inc | 1 -
...0001-make-man-install-relative-to-DESTDIR.patch | 2 +-
.../gdb/gdb/0002-Change-order-of-CFLAGS.patch | 2 +-
...d-support-for-Renesas-SH-sh4-architecture.patch | 2 +-
.../gdb/0004-Change-comment-in-gdb-compile.patch | 48 ----------------------
.../gdb/{gdb_7.9.bb => gdb_7.9.1.bb} | 0
9 files changed, 5 insertions(+), 54 deletions(-)
rename meta/recipes-devtools/gdb/{gdb-7.9.inc => gdb-7.9.1.inc} (68%)
rename meta/recipes-devtools/gdb/{gdb-cross-canadian_7.9.bb => gdb-cross-canadian_7.9.1.bb} (100%)
rename meta/recipes-devtools/gdb/{gdb-cross_7.9.bb => gdb-cross_7.9.1.bb} (100%)
delete mode 100644 meta/recipes-devtools/gdb/gdb/0004-Change-comment-in-gdb-compile.patch
rename meta/recipes-devtools/gdb/{gdb_7.9.bb => gdb_7.9.1.bb} (100%)meta/recipes-devtools/gdb/gdb-7.9.1.inc renamed from meta/recipes-devtools/gdb/gdb-7.9.inc +2 -2
@@ -4,6 +4,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674" -SRC_URI[md5sum] = "8f8ced422fe462a00e0135a643544f17" -SRC_URI[sha256sum] = "d282508cb7df0cb8b2cf659032ce1bede7b5725796e3ac90f3cd9d65844a65f2" +SRC_URI[md5sum] = "f3b97de919a9dba84490b2e076ec4cb0" +SRC_URI[sha256sum] = "4994ad986726ac4128a6f1bd8020cd672e9a92aa76b80736563ef992992764ef"
meta/recipes-devtools/gdb/gdb-cross-canadian_7.9.1.bb renamed from meta/recipes-devtools/gdb/gdb-cross-canadian_7.9.bb +0 -0
meta/recipes-devtools/gdb/gdb-cross_7.9.1.bb renamed from meta/recipes-devtools/gdb/gdb-cross_7.9.bb +0 -0
meta/recipes-devtools/gdb/gdb.inc +0 -1
@@ -4,7 +4,6 @@ inherit gettext SRC_URI += "file://0002-Change-order-of-CFLAGS.patch \ file://0003-Add-support-for-Renesas-SH-sh4-architecture.patch \ - file://0004-Change-comment-in-gdb-compile.patch \ " #LDFLAGS_append = " -s" #export CFLAGS_append=" -L${STAGING_LIBDIR}"
meta/recipes-devtools/gdb/gdb/0001-make-man-install-relative-to-DESTDIR.patch +1 -1
@@ -1,4 +1,4 @@ -From d3ec939b82be23e7c9534cdc7502645f6c5856d1 Mon Sep 17 00:00:00 2001 +From 12b0506951460c3cc37d775478d024db3f95e9d8 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Mon, 2 Mar 2015 02:27:55 +0000 Subject: [PATCH 1/3] make man install relative to DESTDIR
meta/recipes-devtools/gdb/gdb/0002-Change-order-of-CFLAGS.patch +1 -1
@@ -1,4 +1,4 @@ -From 0dcb0a8b139b44ae84e8fd8ff8130cbbb52e444d Mon Sep 17 00:00:00 2001 +From 262ccc4fdb2a3df0f16c61a807046964ae7729c9 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Mon, 2 Mar 2015 02:29:23 +0000 Subject: [PATCH 2/3] Change order of CFLAGS
meta/recipes-devtools/gdb/gdb/0003-Add-support-for-Renesas-SH-sh4-architecture.patch +1 -1
@@ -1,4 +1,4 @@ -From 4e5507488068b3ea2ebf9c84c6c192c7bfd3be82 Mon Sep 17 00:00:00 2001 +From 407cb13cfb70697f45dfb761304e005e1ecbd0e9 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Mon, 2 Mar 2015 02:31:12 +0000 Subject: [PATCH 3/3] Add support for Renesas SH (sh4) architecture.
meta/recipes-devtools/gdb/gdb/0004-Change-comment-in-gdb-compile.patch deleted +0 -48
48 lines not on this page · raw message
meta/recipes-devtools/gdb/gdb_7.9.1.bb renamed from meta/recipes-devtools/gdb/gdb_7.9.bb +0 -0
Signature · 1 line
2.1.4
PATCH 6/6 binutils: Update to tip of 2.25 branch
In reply to Khem RajThis update brings following patches
749b1c7 Fix some PPC assembler errors.
fe1e924 [AArch64][Backport] Remove Load/Store register (unscaled immediate) alias
4e4d08c [AArch64][Backport] Don't always create new frag for .inst directive
0381bf1 [AArch64][Backport] PR18270, fix handling of GOT entry for local symbol
bb22a11 [AArch64][Backport]Improve PC-relative relocation check for shared library
699dcf3 opcodes/
e700dd4 Downgrade linker error on protected symbols in .dynbss to a warning
13ccf8a Revert "Add extern_protected_data and set it for x86"
b0356a6 Add support for the Samsung Exynos M1 processor.
40dbf9d Add support for the Samsung Exynos M1 processor.
2aa5937 Don't pass unadorned zeros to varargs functions
12aca65 Relax PR 15228 protected visibility restriction
b443789 [AArch64] Fix branch stubs for BE
ab50ec0 Import fixes from mainline sources that address illegal memory access problems with the ELF targeted parts of the BFD library. a539f2c Import patches from the master sources which fix illegal memory accesses found by running the binutils on fuzzed binaries. a5ebc2c Fix build problem introduced by previous delta to coffgrok.c
7a57494 Import fixes from mainline that address illegal memory accesses when working with COFF/PE based files. 4f9583e Import fixes from trunk sources to correct invalid memory access issues with various binutils programs. 304a2b6 Import fixes for invalid memory access issues in the binutils DWARF parser from the trunk sources. 1dead8a Import security fixes for readelf from the master branch:
3e3feb3 Limit multi-byte nop instructions to 10 bytes
f12dd7b S/390: Disable relocation sort against code sections.
846daac Fix ppc32 synthetic symbols when __tls_get_addr_opt stub is generated
7235408 Tweak ppc32 tls_get_addr optimisation
642fe3b PowerPC64 thread-safe stubs not needed for iplt
2791b63 Use dynamic text relocs for protected vars
cff59f0 PowerPC64 GOLD: complain on misaligned _DS relocs
20951c8 Fix gold error: hidden symbol '...' is not defined locally
7428be5 [AArch64][2.25] Backport support for Cortex-A72
8093a8b [ARM][2.25] Backport support for Cortex-A72
f7cf878 [ARM] Backport "Skip private symbol when doing objdump"
031994d Add extern_protected_data and set it for x86
Additionally rearranges the local patches in sequence
---
meta/recipes-devtools/binutils/binutils-2.25.inc | 4 ++--
...REL32.patch => 0014-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch} | 0
2 files changed, 2 insertions(+), 2 deletions(-)
rename meta/recipes-devtools/binutils/binutils/{0001-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch => 0014-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch} (100%)meta/recipes-devtools/binutils/binutils-2.25.inc +2 -2
@@ -16,7 +16,7 @@ def binutils_branch_version(d): BINUPV = "${@binutils_branch_version(d)}" -SRCREV = "f2df1e49400f9e2d8d63a5d0fec9bf8c5c2b3342" +SRCREV = "bff55dd20499331280c96697a25b48dd4d7b69e8" 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,7 +31,7 @@ SRC_URI = "\ file://0011-Change-default-emulation-for-mips64-linux.patch \ file://0012-Add-XLP-instructions-support.patch \ file://0013-Fix-an-internal-error-in-do_print_to_mapfile-seen-wi.patch \ - file://0001-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch \ + file://0014-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch \ " S = "${WORKDIR}/git"
meta/recipes-devtools/binutils/binutils/0014-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch renamed from meta/recipes-devtools/binutils/binutils/0001-gold-arm-Skip-pic-check-for-R_ARM_REL32.patch +0 -0
Signature · 1 line
2.1.4
Quoted 17 lines · Khem Raj
This patchset has following
gdb minor upgrade to 7.9.1
binutils move to latest tip on 2.25 stable branch, it gets
the issue where copy relocations against protected symbols don't work with bfd ld and gcc 5.0 on x86/x86-64 it could help with remaining build problem with gcc5 seen on x86/x86-64 this also helps musl based systems which suffer from same issue with gcc-5. This patch needs some runtime testing with gcc 4.9 thoughglibc patch is needed for non glibc libcs to be able to build in OE-core currently its broken for uclibc and musl
Quoted 7 lines
Runqemu patch is required for newer versions of wayland/weston to work after switching to libinput. I have tested it on weston/wayaland and on x11/gnome image it worked ok.
alsa-plugins is a build break fix
openssl is a refresh of the last patch as a upstream backport no functional change
I have added another patch which I forgot last time to fix alas-utils on non-glibc case.