From patchwork Fri Mar 23 13:34:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 132341 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp604522ljb; Fri, 23 Mar 2018 06:35:07 -0700 (PDT) X-Google-Smtp-Source: AG47ELu19RDohnmqueiOiWDJNxajwX4effivve4PfZzuBmIU7ZOqTOdQXJ9ojdJP1uxTI13JRo3K X-Received: by 10.99.60.89 with SMTP id i25mr3462018pgn.208.1521812107695; Fri, 23 Mar 2018 06:35:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521812107; cv=none; d=google.com; s=arc-20160816; b=B1yeA2AnH9NK6etB22T8PCGjSRFE7Z1nl5BrEvlpCj56sdSU25DMnYa/rxoHNnCUKo Fw4YHXvvoX3x72K4rRp6tzt8hI3Y9l4U6WCqUdjSY1U6XUyCToZoUMnBl02HWvt704cT ar2M7HtyYTMPyMW3Bw/A4xdMqMsimHTvYlTHlxc1LR31l59DyGaAes2qNnGVESIY3qL3 zjbyP8EggKVA15L9wFvhdVwP4Tp8V7bv5txgE+vKaCMfXI472HsvM7thFV/veB1HKbI7 Y7RRGernf0mxQAU5bo4l9ssvj0ZhiTqsDfW+AJMvh2fFoxW2Rvwt0s14OJXcR46A14yv 5A3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=oITsZXV15iygh5xG/apA3UtPYNnzhCBlsCdIbt9AYuY=; b=s8g79BVAN1R4VbqthXLlEpxcdFaIc+5wwwkeBwn5JP17K/tnvSAEdYz4VtkoLUyL5d sV/pITJiY4VPljYWXgVVLkfRcL8YyMrRme3Nh4guEilSYK6ZNdVJeyRNOvzcwOAZIZiw Gd5Y9HbrUJ6S+40/h7Co0zXgY6CPVlfD4U0MKrKMTJB9tnT1Ya8rWPnxy7s39xTaNy1l RxBovwrPsO521SymXJY0Usn9rGX6p74YkRbS2BvzExbgOvY4TS7XUxX4z2bg/ww9aEKC KwZyXyTIrHme4q6sXKNaLiHbbuEE1VcNlE4LoNr3Gt/3MiYrQu7WxWvjhqYhtfR6c5JN rpOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=XoGhZJc7; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id m61-v6si8731074plb.63.2018.03.23.06.34.57; Fri, 23 Mar 2018 06:35:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=XoGhZJc7; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 19CEF788CE; Fri, 23 Mar 2018 13:34:55 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl0-f68.google.com (mail-pl0-f68.google.com [209.85.160.68]) by mail.openembedded.org (Postfix) with ESMTP id 1C771788BB for ; Fri, 23 Mar 2018 13:34:53 +0000 (UTC) Received: by mail-pl0-f68.google.com with SMTP id 61-v6so7446640plf.3 for ; Fri, 23 Mar 2018 06:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=6JeIrmTHysxP5AkPZiXUXtYfJQc4+h5APfpnVc7iZV8=; b=XoGhZJc7UKCYfBNwgawayuM7C5RQT8QrcOnWr6xF0XlCpjJAgXKXxhEbI9oG+1XQIl KDbudGupmyInMRi+1hu5WoxSiB5foaMzBGAJr69b18dsDRWRd/e8aVrAuiXoN7bwx180 /VWc95TQwmbajYHYSrV64YiPb9uC9X33i6MHl8X+pxW47VETlvaUPw2XoA1ENNz+ANvT HuZ5+oOMNUfy5h0NV+aKMhi1bPizR+Q61oCd5CEfv8qBcYvjYb9atxYKkG63Qtkq5OuV RiGMtTBBQDYWs+7rawpPvY105yxQuLS2KGwqI8xmjmlUONTX0rAwiB8vc4lMnUZQxMfZ EBAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6JeIrmTHysxP5AkPZiXUXtYfJQc4+h5APfpnVc7iZV8=; b=aaj1UAEWjINalMK21Xldv+8GbEeG0XUT+eazv6eJCoc4c6Z0PYgbz5hluPOaZr2vsz zoWJbXSmr+LJzwQ7KDeS5PomjGaeWsL1pR4RjnXXbXY4E58trqjrU1ngGp+ZxjCoGdgV 68bj8bqnKq0ZqyEe+KKBB+q6a2ONYkyToayP836v9qTq1OJhPQ5x0/MZetIB0pNx63s1 V8GpVR4AWCTUj8bjMLlmI3f7N3nbQQ4Fx6WvtHPbm3TsxiIhPaN25Vq5+KmFdadKaZ+i iqMcmDumto0+yOUICVwUdCIo9h35cWQqKNCQ4VJk67rKA1hj7XwaqLXw2jBukdz7gorn aiPQ== X-Gm-Message-State: AElRT7GiCJOvL5CfJNq0bb3JgABcE5kxaxDmpFYZnDsuMiyIRoRDOOow 3LuzbzxktjH0LTycXvKV+vgLfQ== X-Received: by 2002:a17:902:108a:: with SMTP id c10-v6mr24406466pla.22.1521812094363; Fri, 23 Mar 2018 06:34:54 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8880:466c:6245:cbff:fe64:591]) by smtp.gmail.com with ESMTPSA id q15sm18996375pfi.140.2018.03.23.06.34.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Mar 2018 06:34:53 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 23 Mar 2018 06:34:43 -0700 Message-Id: <20180323133445.15672-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.16.2 Subject: [OE-core] [PATCH 1/3] elfutils: Fix gcc compile time alignment errors X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Allow devtool to organize the SRC_URI Signed-off-by: Khem Raj --- meta/recipes-devtools/elfutils/elfutils_0.170.bb | 40 +++--- ...-packed-structs-follow-the-gcc-memory-lay.patch | 34 +++++ ...de-alternatives-for-glibc-assumptions-hel.patch | 144 ++++++++++----------- 3 files changed, 124 insertions(+), 94 deletions(-) create mode 100644 meta/recipes-devtools/elfutils/files/0001-Ensure-that-packed-structs-follow-the-gcc-memory-lay.patch -- 2.16.2 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/elfutils/elfutils_0.170.bb b/meta/recipes-devtools/elfutils/elfutils_0.170.bb index 9242aea26b..54d341d190 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.170.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.170.bb @@ -5,35 +5,33 @@ LICENSE = "(GPLv3 & Elfutils-Exception)" LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" DEPENDS = "libtool bzip2 zlib virtual/libintl" DEPENDS_append_libc-musl = " argp-standalone fts " -SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2" +SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \ + file://0001-dso-link-change.patch \ + file://0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch \ + file://0003-fixheadercheck.patch \ + file://0004-Disable-the-test-to-convert-euc-jp.patch \ + file://0005-fix-a-stack-usage-warning.patch \ + file://0006-Fix-build-on-aarch64-musl.patch \ + file://0007-Fix-control-path-where-we-have-str-as-uninitialized-.patch \ + file://0001-libasm-may-link-with-libbz2-if-found.patch \ + file://debian/hppa_backend.diff \ + file://debian/arm_backend.diff \ + file://debian/mips_backend.patch \ + file://debian/mips_readelf_w.patch \ + file://debian/0001-Ignore-differences-between-mips-machine-identifiers.patch \ + file://debian/0002-Add-support-for-mips64-abis-in-mips_retval.c.patch \ + file://debian/0003-Add-mips-n64-relocation-format-hack.patch \ + file://0001-Use-fallthrough-attribute.patch \ + file://0001-Ensure-that-packed-structs-follow-the-gcc-memory-lay.patch \ + " SRC_URI[md5sum] = "03599aee98c9b726c7a732a2dd0245d5" SRC_URI[sha256sum] = "1f844775576b79bdc9f9c717a50058d08620323c1e935458223a12f249c9e066" -SRC_URI += "\ - file://0001-dso-link-change.patch \ - file://0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch \ - file://0003-fixheadercheck.patch \ - file://0004-Disable-the-test-to-convert-euc-jp.patch \ - file://0005-fix-a-stack-usage-warning.patch \ - file://0006-Fix-build-on-aarch64-musl.patch \ - file://0007-Fix-control-path-where-we-have-str-as-uninitialized-.patch \ - file://0001-libasm-may-link-with-libbz2-if-found.patch \ -" SRC_URI_append_libc-musl = " file://0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch" # Pick patches from debian # http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.168-0.2.debian.tar.xz -SRC_URI += "\ - file://debian/hppa_backend.diff \ - file://debian/arm_backend.diff \ - file://debian/mips_backend.patch \ - file://debian/mips_readelf_w.patch \ - file://debian/0001-Ignore-differences-between-mips-machine-identifiers.patch \ - file://debian/0002-Add-support-for-mips64-abis-in-mips_retval.c.patch \ - file://debian/0003-Add-mips-n64-relocation-format-hack.patch \ -" # Fix fallthrough with GCC7 -SRC_URI += "file://0001-Use-fallthrough-attribute.patch" # The buildsystem wants to generate 2 .h files from source using a binary it just built, # which can not pass the cross compiling, so let's work around it by adding 2 .h files diff --git a/meta/recipes-devtools/elfutils/files/0001-Ensure-that-packed-structs-follow-the-gcc-memory-lay.patch b/meta/recipes-devtools/elfutils/files/0001-Ensure-that-packed-structs-follow-the-gcc-memory-lay.patch new file mode 100644 index 0000000000..cf4d1dfe75 --- /dev/null +++ b/meta/recipes-devtools/elfutils/files/0001-Ensure-that-packed-structs-follow-the-gcc-memory-lay.patch @@ -0,0 +1,34 @@ +From 732913a8c35c7b25c0cbf6903cab1ad6b602b525 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 22 Mar 2018 22:44:03 -0700 +Subject: [PATCH] Ensure that packed structs follow the gcc memory layout + +Partial backport of +https://sourceware.org/git/?p=elfutils.git;a=commit;h=17d7194d291bf91d130b78e06cbe27b290e0376d + +Helps fixing alignment errors e.g. +linux-core-note.c:116:1: error: alignment 2 of 'struct m68k_prstatus +' is less than 4 [-Werror=packed-not-aligned] + ; + ^ + +Upstream-Status: Backport [https://sourceware.org/git/?p=elfutils.git;a=commit;h=17d7194d291bf91d130b78e06cbe27b290e0376d] + +Signed-off-by: Khem Raj +--- + backends/linux-core-note.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/backends/linux-core-note.c b/backends/linux-core-note.c +index 5f06c896..9faae4c3 100644 +--- a/backends/linux-core-note.c ++++ b/backends/linux-core-note.c +@@ -111,7 +111,7 @@ struct EBLHOOK(prstatus) + FIELD (INT, pr_fpvalid); + } + #ifdef ALIGN_PRSTATUS +- __attribute__ ((packed, aligned (ALIGN_PRSTATUS))) ++ attribute_packed __attribute__ ((aligned (ALIGN_PRSTATUS))) + #endif + ; + diff --git a/meta/recipes-devtools/elfutils/files/0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch b/meta/recipes-devtools/elfutils/files/0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch index 8864d44369..a42ce7b358 100644 --- a/meta/recipes-devtools/elfutils/files/0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch +++ b/meta/recipes-devtools/elfutils/files/0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch @@ -1,4 +1,4 @@ -From 010b0c57e748440eb1ceb3d977875f2488d2b4ce Mon Sep 17 00:00:00 2001 +From ef0981744669149a00dd0439a54dac30de7b56a7 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 16 Aug 2017 10:06:26 +0800 Subject: [PATCH] build: Provide alternatives for glibc assumptions helps @@ -10,6 +10,7 @@ Signed-off-by: Khem Raj Rebase to 0.170 Signed-off-by: Hongxu Jia + --- Makefile.am | 2 +- lib/color.c | 3 ++- @@ -83,7 +84,7 @@ Signed-off-by: Hongxu Jia 69 files changed, 95 insertions(+), 64 deletions(-) diff --git a/Makefile.am b/Makefile.am -index 2ff444e..41f77df 100644 +index 2ff444e7..41f77df8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -28,7 +28,7 @@ pkginclude_HEADERS = version.h @@ -96,7 +97,7 @@ index 2ff444e..41f77df 100644 EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \ COPYING COPYING-GPLV2 COPYING-LGPLV3 diff --git a/lib/color.c b/lib/color.c -index f62389d..a2a84b4 100644 +index f62389d5..a2a84b46 100644 --- a/lib/color.c +++ b/lib/color.c @@ -32,13 +32,14 @@ @@ -116,7 +117,7 @@ index f62389d..a2a84b4 100644 /* Prototype for option handler. */ static error_t parse_opt (int key, char *arg, struct argp_state *state); diff --git a/lib/fixedsizehash.h b/lib/fixedsizehash.h -index dac2a5f..43016fc 100644 +index dac2a5f5..43016fc3 100644 --- a/lib/fixedsizehash.h +++ b/lib/fixedsizehash.h @@ -30,7 +30,6 @@ @@ -128,7 +129,7 @@ index dac2a5f..43016fc 100644 #include diff --git a/lib/system.h b/lib/system.h -index 9203335..1a60131 100644 +index 92033355..1a601319 100644 --- a/lib/system.h +++ b/lib/system.h @@ -50,6 +50,16 @@ @@ -149,7 +150,7 @@ index 9203335..1a60131 100644 #ifndef MAX #define MAX(m, n) ((m) < (n) ? (n) : (m)) diff --git a/lib/xmalloc.c b/lib/xmalloc.c -index 0cde384..217b054 100644 +index 0cde384f..217b0541 100644 --- a/lib/xmalloc.c +++ b/lib/xmalloc.c @@ -30,7 +30,7 @@ @@ -162,7 +163,7 @@ index 0cde384..217b054 100644 #include #include diff --git a/libasm/asm_end.c b/libasm/asm_end.c -index ced24f5..4ad918c 100644 +index ced24f50..4ad918c4 100644 --- a/libasm/asm_end.c +++ b/libasm/asm_end.c @@ -32,7 +32,7 @@ @@ -175,7 +176,7 @@ index ced24f5..4ad918c 100644 #include #include diff --git a/libasm/asm_newscn.c b/libasm/asm_newscn.c -index ddbb25d..74a598d 100644 +index ddbb25df..74a598d9 100644 --- a/libasm/asm_newscn.c +++ b/libasm/asm_newscn.c @@ -32,7 +32,7 @@ @@ -188,7 +189,7 @@ index ddbb25d..74a598d 100644 #include #include diff --git a/libcpu/i386_gendis.c b/libcpu/i386_gendis.c -index aae5eae..6d76016 100644 +index aae5eae6..6d760165 100644 --- a/libcpu/i386_gendis.c +++ b/libcpu/i386_gendis.c @@ -31,7 +31,7 @@ @@ -201,7 +202,7 @@ index aae5eae..6d76016 100644 #include #include diff --git a/libcpu/i386_lex.c b/libcpu/i386_lex.c -index ba5f4aa..b1e4191 100644 +index ba5f4aa5..b1e41916 100644 --- a/libcpu/i386_lex.c +++ b/libcpu/i386_lex.c @@ -577,7 +577,7 @@ char *i386_text; @@ -214,7 +215,7 @@ index ba5f4aa..b1e4191 100644 #include diff --git a/libcpu/i386_parse.c b/libcpu/i386_parse.c -index ef1ac35..48f2e64 100644 +index 6fa7ce3d..bb270061 100644 --- a/libcpu/i386_parse.c +++ b/libcpu/i386_parse.c @@ -107,7 +107,7 @@ @@ -227,7 +228,7 @@ index ef1ac35..48f2e64 100644 #include #include diff --git a/libdw/Makefile.am b/libdw/Makefile.am -index ff8c291..89e792a 100644 +index ff8c291e..89e792aa 100644 --- a/libdw/Makefile.am +++ b/libdw/Makefile.am @@ -105,7 +105,8 @@ am_libdw_pic_a_OBJECTS = $(libdw_a_SOURCES:.c=.os) @@ -241,7 +242,7 @@ index ff8c291..89e792a 100644 libdw.so$(EXEEXT): $(srcdir)/libdw.map $(libdw_so_LIBS) $(libdw_so_DEPS) # The rpath is necessary for libebl because its $ORIGIN use will diff --git a/libdw/libdw_alloc.c b/libdw/libdw_alloc.c -index 28a8cf6..29aeb3f 100644 +index 28a8cf6e..29aeb3f7 100644 --- a/libdw/libdw_alloc.c +++ b/libdw/libdw_alloc.c @@ -31,7 +31,7 @@ @@ -254,7 +255,7 @@ index 28a8cf6..29aeb3f 100644 #include #include "libdwP.h" diff --git a/libdwfl/dwfl_build_id_find_elf.c b/libdwfl/dwfl_build_id_find_elf.c -index ee0c164..b06ab59 100644 +index ee0c1646..b06ab596 100644 --- a/libdwfl/dwfl_build_id_find_elf.c +++ b/libdwfl/dwfl_build_id_find_elf.c @@ -31,6 +31,7 @@ @@ -275,7 +276,7 @@ index ee0c164..b06ab59 100644 { *file_name = name; diff --git a/libdwfl/dwfl_error.c b/libdwfl/dwfl_error.c -index 7bcf61c..c345797 100644 +index 7bcf61cc..c345797a 100644 --- a/libdwfl/dwfl_error.c +++ b/libdwfl/dwfl_error.c @@ -140,6 +140,7 @@ __libdwfl_seterrno (Dwfl_Error error) @@ -297,7 +298,7 @@ index 7bcf61c..c345797 100644 return elf_errmsg (error & 0xffff); case OTHER_ERROR (LIBDW): diff --git a/libdwfl/dwfl_module_getdwarf.c b/libdwfl/dwfl_module_getdwarf.c -index 9775ace..511c4a6 100644 +index 9775aced..511c4a6a 100644 --- a/libdwfl/dwfl_module_getdwarf.c +++ b/libdwfl/dwfl_module_getdwarf.c @@ -35,6 +35,7 @@ @@ -309,7 +310,7 @@ index 9775ace..511c4a6 100644 #include "../libelf/libelfP.h" #include "system.h" diff --git a/libdwfl/find-debuginfo.c b/libdwfl/find-debuginfo.c -index 6d5a42a..9267788 100644 +index 6d5a42a6..9267788d 100644 --- a/libdwfl/find-debuginfo.c +++ b/libdwfl/find-debuginfo.c @@ -389,7 +389,7 @@ dwfl_standard_find_debuginfo (Dwfl_Module *mod, @@ -322,7 +323,7 @@ index 6d5a42a..9267788 100644 fd = find_debuginfo_in_path (mod, canon, debuglink_file, debuglink_crc, diff --git a/libdwfl/libdwfl_crc32_file.c b/libdwfl/libdwfl_crc32_file.c -index f849128..6f0aca1 100644 +index f849128d..6f0aca1b 100644 --- a/libdwfl/libdwfl_crc32_file.c +++ b/libdwfl/libdwfl_crc32_file.c @@ -29,6 +29,15 @@ @@ -342,7 +343,7 @@ index f849128..6f0aca1 100644 #define crc32 __libdwfl_crc32 #include diff --git a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c -index 9d0fef2..9fc09b8 100644 +index 9d0fef2c..9fc09b88 100644 --- a/libdwfl/linux-kernel-modules.c +++ b/libdwfl/linux-kernel-modules.c @@ -40,6 +40,7 @@ @@ -354,7 +355,7 @@ index 9d0fef2..9fc09b8 100644 #include #include diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c -index 5371396..2e66dfd 100644 +index 53713963..2e66dfdd 100644 --- a/libebl/eblopenbackend.c +++ b/libebl/eblopenbackend.c @@ -32,7 +32,7 @@ @@ -367,7 +368,7 @@ index 5371396..2e66dfd 100644 #include #include diff --git a/libelf/elf.h b/libelf/elf.h -index 5cf2b93..990b3af 100644 +index 5cf2b934..990b3afb 100644 --- a/libelf/elf.h +++ b/libelf/elf.h @@ -21,7 +21,9 @@ @@ -392,7 +393,7 @@ index 5cf2b93..990b3af 100644 #endif /* elf.h */ diff --git a/libelf/libelf.h b/libelf/libelf.h -index 547c0f5..dd78799 100644 +index 547c0f50..dd78799e 100644 --- a/libelf/libelf.h +++ b/libelf/libelf.h @@ -29,6 +29,7 @@ @@ -404,7 +405,7 @@ index 547c0f5..dd78799 100644 #include diff --git a/libelf/libelfP.h b/libelf/libelfP.h -index 7ee6625..5840899 100644 +index 7ee6625a..58408997 100644 --- a/libelf/libelfP.h +++ b/libelf/libelfP.h @@ -32,6 +32,7 @@ @@ -416,7 +417,7 @@ index 7ee6625..5840899 100644 #include #include diff --git a/src/addr2line.c b/src/addr2line.c -index ba414a7..04b7116 100644 +index 444ee52c..9596fa67 100644 --- a/src/addr2line.c +++ b/src/addr2line.c @@ -23,7 +23,7 @@ @@ -429,7 +430,7 @@ index ba414a7..04b7116 100644 #include #include diff --git a/src/ar.c b/src/ar.c -index ec32cee..4efd729 100644 +index ec32cee5..4efd729c 100644 --- a/src/ar.c +++ b/src/ar.c @@ -22,7 +22,7 @@ @@ -442,7 +443,7 @@ index ec32cee..4efd729 100644 #include #include diff --git a/src/arlib.c b/src/arlib.c -index e0839aa..1143658 100644 +index e0839aab..1143658f 100644 --- a/src/arlib.c +++ b/src/arlib.c @@ -21,7 +21,7 @@ @@ -455,7 +456,7 @@ index e0839aa..1143658 100644 #include #include diff --git a/src/arlib2.c b/src/arlib2.c -index 553fc57..46443d0 100644 +index 553fc57b..46443d0e 100644 --- a/src/arlib2.c +++ b/src/arlib2.c @@ -20,7 +20,7 @@ @@ -468,7 +469,7 @@ index 553fc57..46443d0 100644 #include #include diff --git a/src/elfcmp.c b/src/elfcmp.c -index 5046420..cff183f 100644 +index 50464207..cff183fa 100644 --- a/src/elfcmp.c +++ b/src/elfcmp.c @@ -23,7 +23,7 @@ @@ -481,7 +482,7 @@ index 5046420..cff183f 100644 #include #include diff --git a/src/elflint.c b/src/elflint.c -index 51e53c2..da0b0dc 100644 +index df1b3a03..67d8d134 100644 --- a/src/elflint.c +++ b/src/elflint.c @@ -24,7 +24,7 @@ @@ -494,7 +495,7 @@ index 51e53c2..da0b0dc 100644 #include #include diff --git a/src/findtextrel.c b/src/findtextrel.c -index 8f1e239..71463af 100644 +index 8f1e239a..71463af3 100644 --- a/src/findtextrel.c +++ b/src/findtextrel.c @@ -23,7 +23,7 @@ @@ -507,7 +508,7 @@ index 8f1e239..71463af 100644 #include #include diff --git a/src/nm.c b/src/nm.c -index 969c6d3..3113c04 100644 +index 969c6d35..3113c04c 100644 --- a/src/nm.c +++ b/src/nm.c @@ -26,7 +26,7 @@ @@ -520,7 +521,7 @@ index 969c6d3..3113c04 100644 #include #include diff --git a/src/objdump.c b/src/objdump.c -index 860cfac..61e67bf 100644 +index 0dd9a6aa..9c8bf149 100644 --- a/src/objdump.c +++ b/src/objdump.c @@ -21,7 +21,7 @@ @@ -533,7 +534,7 @@ index 860cfac..61e67bf 100644 #include #include diff --git a/src/ranlib.c b/src/ranlib.c -index cc0ee23..ae851e4 100644 +index cc0ee233..ae851e40 100644 --- a/src/ranlib.c +++ b/src/ranlib.c @@ -24,7 +24,7 @@ @@ -546,7 +547,7 @@ index cc0ee23..ae851e4 100644 #include #include diff --git a/src/readelf.c b/src/readelf.c -index 346eccd..c831aa8 100644 +index 6a27e7e0..4759a965 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -25,7 +25,7 @@ @@ -559,7 +560,7 @@ index 346eccd..c831aa8 100644 #include #include diff --git a/src/size.c b/src/size.c -index ad8dbcb..fd83be0 100644 +index ad8dbcbb..fd83be06 100644 --- a/src/size.c +++ b/src/size.c @@ -21,7 +21,7 @@ @@ -572,7 +573,7 @@ index ad8dbcb..fd83be0 100644 #include #include diff --git a/src/stack.c b/src/stack.c -index 6f2ff69..6da0243 100644 +index 6f2ff69f..6da0243d 100644 --- a/src/stack.c +++ b/src/stack.c @@ -18,7 +18,7 @@ @@ -585,7 +586,7 @@ index 6f2ff69..6da0243 100644 #include #include diff --git a/src/strings.c b/src/strings.c -index d214356..76cb26b 100644 +index 03d0f133..5c311cbd 100644 --- a/src/strings.c +++ b/src/strings.c @@ -25,7 +25,7 @@ @@ -598,7 +599,7 @@ index d214356..76cb26b 100644 #include #include diff --git a/src/strip.c b/src/strip.c -index c7830ec..0d7f148 100644 +index c7830ec6..0d7f148d 100644 --- a/src/strip.c +++ b/src/strip.c @@ -24,7 +24,7 @@ @@ -611,7 +612,7 @@ index c7830ec..0d7f148 100644 #include #include diff --git a/src/unstrip.c b/src/unstrip.c -index 5074909..3d4f952 100644 +index 50749093..3d4f9525 100644 --- a/src/unstrip.c +++ b/src/unstrip.c @@ -31,7 +31,7 @@ @@ -624,7 +625,7 @@ index 5074909..3d4f952 100644 #include #include diff --git a/tests/addrscopes.c b/tests/addrscopes.c -index 791569f..54f4311 100644 +index 791569f5..54f4311b 100644 --- a/tests/addrscopes.c +++ b/tests/addrscopes.c @@ -25,7 +25,7 @@ @@ -637,7 +638,7 @@ index 791569f..54f4311 100644 diff --git a/tests/allregs.c b/tests/allregs.c -index 286f7e3..c9de089 100644 +index 286f7e3c..c9de0897 100644 --- a/tests/allregs.c +++ b/tests/allregs.c @@ -21,7 +21,7 @@ @@ -650,7 +651,7 @@ index 286f7e3..c9de089 100644 #include #include diff --git a/tests/backtrace-data.c b/tests/backtrace-data.c -index a387d8f..955c27d 100644 +index a387d8ff..955c27d1 100644 --- a/tests/backtrace-data.c +++ b/tests/backtrace-data.c @@ -27,7 +27,7 @@ @@ -663,7 +664,7 @@ index a387d8f..955c27d 100644 #include #if defined(__x86_64__) && defined(__linux__) diff --git a/tests/backtrace-dwarf.c b/tests/backtrace-dwarf.c -index 2dc8a9a..24ca7fb 100644 +index 2dc8a9a2..24ca7fb0 100644 --- a/tests/backtrace-dwarf.c +++ b/tests/backtrace-dwarf.c @@ -22,7 +22,7 @@ @@ -676,7 +677,7 @@ index 2dc8a9a..24ca7fb 100644 #include #include diff --git a/tests/backtrace.c b/tests/backtrace.c -index 21abe8a..d733248 100644 +index f5dd761f..a93a8f03 100644 --- a/tests/backtrace.c +++ b/tests/backtrace.c @@ -24,7 +24,7 @@ @@ -689,7 +690,7 @@ index 21abe8a..d733248 100644 #include #ifdef __linux__ diff --git a/tests/buildid.c b/tests/buildid.c -index 87c1877..2953e6b 100644 +index 87c18773..2953e6bb 100644 --- a/tests/buildid.c +++ b/tests/buildid.c @@ -23,7 +23,7 @@ @@ -702,7 +703,7 @@ index 87c1877..2953e6b 100644 #include #include diff --git a/tests/debugaltlink.c b/tests/debugaltlink.c -index 6d97d50..ee7e559 100644 +index 6d97d500..ee7e559e 100644 --- a/tests/debugaltlink.c +++ b/tests/debugaltlink.c @@ -23,7 +23,7 @@ @@ -715,7 +716,7 @@ index 6d97d50..ee7e559 100644 #include #include diff --git a/tests/debuglink.c b/tests/debuglink.c -index 935d102..741cb81 100644 +index 935d1029..741cb814 100644 --- a/tests/debuglink.c +++ b/tests/debuglink.c @@ -21,7 +21,7 @@ @@ -728,7 +729,7 @@ index 935d102..741cb81 100644 #include #include diff --git a/tests/deleted.c b/tests/deleted.c -index 6be35bc..0190711 100644 +index 6be35bc2..01907113 100644 --- a/tests/deleted.c +++ b/tests/deleted.c @@ -21,7 +21,7 @@ @@ -741,7 +742,7 @@ index 6be35bc..0190711 100644 #ifdef __linux__ #include diff --git a/tests/dwfl-addr-sect.c b/tests/dwfl-addr-sect.c -index 21e470a..1ea1e3b 100644 +index 21e470a3..1ea1e3b2 100644 --- a/tests/dwfl-addr-sect.c +++ b/tests/dwfl-addr-sect.c @@ -23,7 +23,7 @@ @@ -754,7 +755,7 @@ index 21e470a..1ea1e3b 100644 #include #include ELFUTILS_HEADER(dwfl) diff --git a/tests/dwfl-bug-addr-overflow.c b/tests/dwfl-bug-addr-overflow.c -index aa8030e..02c8bef 100644 +index aa8030e1..02c8bef9 100644 --- a/tests/dwfl-bug-addr-overflow.c +++ b/tests/dwfl-bug-addr-overflow.c @@ -20,7 +20,7 @@ @@ -767,7 +768,7 @@ index aa8030e..02c8bef 100644 #include ELFUTILS_HEADER(dwfl) diff --git a/tests/dwfl-bug-fd-leak.c b/tests/dwfl-bug-fd-leak.c -index 689cdd7..5973da3 100644 +index 689cdd79..5973da39 100644 --- a/tests/dwfl-bug-fd-leak.c +++ b/tests/dwfl-bug-fd-leak.c @@ -24,7 +24,7 @@ @@ -780,7 +781,7 @@ index 689cdd7..5973da3 100644 #include diff --git a/tests/dwfl-bug-getmodules.c b/tests/dwfl-bug-getmodules.c -index 1ee989f..fd62e65 100644 +index 1ee989f8..fd62e653 100644 --- a/tests/dwfl-bug-getmodules.c +++ b/tests/dwfl-bug-getmodules.c @@ -18,7 +18,7 @@ @@ -793,7 +794,7 @@ index 1ee989f..fd62e65 100644 static const Dwfl_Callbacks callbacks = { diff --git a/tests/dwfl-report-elf-align.c b/tests/dwfl-report-elf-align.c -index a4e97d3..f471587 100644 +index a4e97d3c..f471587c 100644 --- a/tests/dwfl-report-elf-align.c +++ b/tests/dwfl-report-elf-align.c @@ -20,7 +20,7 @@ @@ -806,7 +807,7 @@ index a4e97d3..f471587 100644 #include #include diff --git a/tests/dwfllines.c b/tests/dwfllines.c -index 90379dd..cbdf6c4 100644 +index 90379dd2..cbdf6c4c 100644 --- a/tests/dwfllines.c +++ b/tests/dwfllines.c @@ -27,7 +27,7 @@ @@ -819,7 +820,7 @@ index 90379dd..cbdf6c4 100644 int main (int argc, char *argv[]) diff --git a/tests/dwflmodtest.c b/tests/dwflmodtest.c -index 0027f96..e68d3bc 100644 +index 0027f96b..e68d3bca 100644 --- a/tests/dwflmodtest.c +++ b/tests/dwflmodtest.c @@ -23,7 +23,7 @@ @@ -832,7 +833,7 @@ index 0027f96..e68d3bc 100644 #include #include ELFUTILS_HEADER(dwfl) diff --git a/tests/dwflsyms.c b/tests/dwflsyms.c -index 49ac334..cf07830 100644 +index 49ac3346..cf078301 100644 --- a/tests/dwflsyms.c +++ b/tests/dwflsyms.c @@ -25,7 +25,7 @@ @@ -845,7 +846,7 @@ index 49ac334..cf07830 100644 static const char * diff --git a/tests/early-offscn.c b/tests/early-offscn.c -index 924cb9e..6f60d5a 100644 +index 924cb9ef..6f60d5a3 100644 --- a/tests/early-offscn.c +++ b/tests/early-offscn.c @@ -19,7 +19,7 @@ @@ -858,7 +859,7 @@ index 924cb9e..6f60d5a 100644 #include #include diff --git a/tests/ecp.c b/tests/ecp.c -index 38a6859..743cea5 100644 +index 38a6859e..743cea5d 100644 --- a/tests/ecp.c +++ b/tests/ecp.c @@ -20,7 +20,7 @@ @@ -871,7 +872,7 @@ index 38a6859..743cea5 100644 #include #include diff --git a/tests/find-prologues.c b/tests/find-prologues.c -index ba8ae37..76f5f04 100644 +index ba8ae371..76f5f047 100644 --- a/tests/find-prologues.c +++ b/tests/find-prologues.c @@ -25,7 +25,7 @@ @@ -884,7 +885,7 @@ index ba8ae37..76f5f04 100644 #include diff --git a/tests/funcretval.c b/tests/funcretval.c -index 8d19d11..c8aaa93 100644 +index 8d19d117..c8aaa93d 100644 --- a/tests/funcretval.c +++ b/tests/funcretval.c @@ -25,7 +25,7 @@ @@ -897,7 +898,7 @@ index 8d19d11..c8aaa93 100644 #include diff --git a/tests/funcscopes.c b/tests/funcscopes.c -index 9c90185..dbccb89 100644 +index 9c901858..dbccb89e 100644 --- a/tests/funcscopes.c +++ b/tests/funcscopes.c @@ -25,7 +25,7 @@ @@ -910,7 +911,7 @@ index 9c90185..dbccb89 100644 #include diff --git a/tests/getsrc_die.c b/tests/getsrc_die.c -index 055aede..9c394dd 100644 +index 055aede0..9c394dd0 100644 --- a/tests/getsrc_die.c +++ b/tests/getsrc_die.c @@ -19,7 +19,7 @@ @@ -923,7 +924,7 @@ index 055aede..9c394dd 100644 #include #include diff --git a/tests/line2addr.c b/tests/line2addr.c -index e0d65d3..9bf0023 100644 +index e0d65d3d..9bf0023b 100644 --- a/tests/line2addr.c +++ b/tests/line2addr.c @@ -26,7 +26,7 @@ @@ -936,7 +937,7 @@ index e0d65d3..9bf0023 100644 static void diff --git a/tests/low_high_pc.c b/tests/low_high_pc.c -index d0f4302..8da4fbd 100644 +index d0f43023..8da4fbdf 100644 --- a/tests/low_high_pc.c +++ b/tests/low_high_pc.c @@ -25,7 +25,7 @@ @@ -949,7 +950,7 @@ index d0f4302..8da4fbd 100644 #include diff --git a/tests/md5-sha1-test.c b/tests/md5-sha1-test.c -index d50355e..3c41f40 100644 +index d50355e9..3c41f40b 100644 --- a/tests/md5-sha1-test.c +++ b/tests/md5-sha1-test.c @@ -19,7 +19,7 @@ @@ -962,7 +963,7 @@ index d50355e..3c41f40 100644 #include "md5.h" #include "sha1.h" diff --git a/tests/rdwrmmap.c b/tests/rdwrmmap.c -index 6f027df..1ce5e6e 100644 +index 6f027dfe..1ce5e6ed 100644 --- a/tests/rdwrmmap.c +++ b/tests/rdwrmmap.c @@ -19,7 +19,7 @@ @@ -975,7 +976,7 @@ index 6f027df..1ce5e6e 100644 #include #include diff --git a/tests/saridx.c b/tests/saridx.c -index 8a450d8..b387801 100644 +index 8a450d82..b3878013 100644 --- a/tests/saridx.c +++ b/tests/saridx.c @@ -17,7 +17,7 @@ @@ -988,7 +989,7 @@ index 8a450d8..b387801 100644 #include #include diff --git a/tests/sectiondump.c b/tests/sectiondump.c -index 3033fed..8e888db 100644 +index 3033fedc..8e888db3 100644 --- a/tests/sectiondump.c +++ b/tests/sectiondump.c @@ -18,7 +18,7 @@ @@ -1001,7 +1002,7 @@ index 3033fed..8e888db 100644 #include #include diff --git a/tests/varlocs.c b/tests/varlocs.c -index c3fba89..e043ea2 100644 +index c3fba89e..e043ea2c 100644 --- a/tests/varlocs.c +++ b/tests/varlocs.c @@ -25,7 +25,7 @@ @@ -1014,7 +1015,7 @@ index c3fba89..e043ea2 100644 #include #include diff --git a/tests/vdsosyms.c b/tests/vdsosyms.c -index b876c10..afb2823 100644 +index b876c10b..afb28232 100644 --- a/tests/vdsosyms.c +++ b/tests/vdsosyms.c @@ -18,7 +18,7 @@ @@ -1026,6 +1027,3 @@ index b876c10..afb2823 100644 #include #include #include --- -1.8.3.1 - From patchwork Fri Mar 23 13:34:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 132342 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp604581ljb; Fri, 23 Mar 2018 06:35:11 -0700 (PDT) X-Google-Smtp-Source: AG47ELvWGcRPXyFAgHeb4y+tgDpD79aKERTKstJQWAJ9Lz4K/jihSDySF7X4axG2FpZfdKuQ3uSR X-Received: by 10.99.152.10 with SMTP id q10mr10032209pgd.40.1521812111128; Fri, 23 Mar 2018 06:35:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521812111; cv=none; d=google.com; s=arc-20160816; b=qPyWH6YsYrCM+qNPhA/DmANYBaD4m0BDeZoSnQNspk2N+0DzP1H5riDdtnbqhg1v7d BHalzP8Q57By3dIj3dhjf1zYwvx9kd14DF6Rqxc9zhyw4pDAH5MuMr5WoBgNJ6KB66yh t4v+/2ZMRZ1THTD7iGP88lm/8fZdfxaqcsfU9Qq/074uB7Vses8Ap7Ph0/ZYgOLir+pO t5I812mi0+MURapQHbpu5RbdmPYbVAX7SUYHi5YJF/HXPgFkMIsJI/ACqEv2mK7ZZ6XB uqD71ResoRpWx079koJ2o05TDV7poYi2OQoJt3BuNhSLkbaKJU8fLlex6futRs3ek4mw 4UEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=LXyTJOgfqStXYOvXcXJCUllxiONuJZ17xJmmCMYlgGs=; b=RfsCVrXizlF/L9MDBSkR1odSmRJXZNwYt4OtG+9yuTZCDDwCBXeREjw84CU+gOvXnl cf2BaluvmS4Yzog6BAqNrIWwXTsE7Vm9uVgOCM+JzxNfJV7Sjts4pTvtqMmNrRsUuThZ Cu/+Szn8td9ycYUIjGUIAAIZCyEIagzdU2D7Gn7cI94MuxWirS0gh8bIdRQShBBEnbZW 9pzi5JU4+SFTyn6sRd7mffh4/a5ozIENvGW+vXjPzjoGbHaegASRPMKlqoXRmeQrG+hf F4BahIUYLunsoji6dmYd6KL9v/ZuTHKX8YD7h4KNv1pV4OMTHX1vepXtE3FZZ8UVY88A V3mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=W33yMJtF; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id i188si5957267pgc.178.2018.03.23.06.35.03; Fri, 23 Mar 2018 06:35:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=W33yMJtF; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 9363A788E1; Fri, 23 Mar 2018 13:35:01 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl0-f68.google.com (mail-pl0-f68.google.com [209.85.160.68]) by mail.openembedded.org (Postfix) with ESMTP id E2A9C788BB for ; Fri, 23 Mar 2018 13:34:54 +0000 (UTC) Received: by mail-pl0-f68.google.com with SMTP id k22-v6so7423913pls.6 for ; Fri, 23 Mar 2018 06:34:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mvonfTM53GSPih2YKmpy/RAI0LONvFvk1MAkyUmy3wk=; b=W33yMJtFhXCpXa8rTfw1/rpdLbGkfmznzLd54CN2p4BRVeaYFDcPt6m2cbb8q80S/r ewthT5111fcUiBuD2rYjIoTzF/iva/ETZvu93EgoFmCjVj/GNC+adUFxIWoY/fJahhNm aX0InbElnbQA8eY3Br/W5dqG76agqf7tPkuvrEXeKKVZV0UEB2z969ak0tlZfiI+8a8Q y7OtEex+N4Ma4f+TtiNJWVk69+8QZuz7skVOLbBMvaHiGlOiLXNjNJ6OePchFlkvygwF jKCd1hItIZRNGoZrl74RvEra/pHl27/d3plGLlFG93cEvBY/wTRRMSTvkSqYbvfbj1ll uatQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mvonfTM53GSPih2YKmpy/RAI0LONvFvk1MAkyUmy3wk=; b=HuLdZFeeyBZFW6MI9VaSpbM5yBPn7t76ymEBKGb/rSKGRvp0C+uR2Heb2WvyHEKKqy M5wY9iC73YPOKfqrioGcSN/R66P+rpqMPAzvMHYp5eAPUca2kAo8nk/i1Qd5B4GXgkVn mf1ph867tk5XtioLyuFxDbp6Z9B6zpQ4g1OmVOn4DeFV+BcMHipTEtyj4bqPWOTXYzY8 O25UgmucwL98cP4B9qyDVJ9wE699fmd0j7/pCd+sHJ5ZjKxsthKMr3i41VD2KS0LCPIh KPgjWei140IVkVqvjNoPRJnO+VjRYJ4im81e+xZMsHAm7gjMqXZulY6CX/hkmxNCWC04 QH+Q== X-Gm-Message-State: AElRT7G8+xyHr3QMle+Dyc59HrVwU0MKXKSi7ZZNOOMjy0mGRBs79e61 1HaLgtIdCELWej/N0uZQc//GZg== X-Received: by 2002:a17:902:2d24:: with SMTP id o33-v6mr16258161plb.143.1521812096252; Fri, 23 Mar 2018 06:34:56 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8880:466c:6245:cbff:fe64:591]) by smtp.gmail.com with ESMTPSA id q15sm18996375pfi.140.2018.03.23.06.34.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Mar 2018 06:34:55 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 23 Mar 2018 06:34:44 -0700 Message-Id: <20180323133445.15672-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323133445.15672-1-raj.khem@gmail.com> References: <20180323133445.15672-1-raj.khem@gmail.com> Subject: [OE-core] [PATCH 2/3] glibc: Replace strncpy with memccpy to fix -Wstringop-truncation. X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...ncpy-with-memccpy-to-fix-Wstringop-trunca.patch | 39 ++++++++++++++++++++++ meta/recipes-core/glibc/glibc_2.27.bb | 1 + 2 files changed, 40 insertions(+) create mode 100644 meta/recipes-core/glibc/glibc/0029-Replace-strncpy-with-memccpy-to-fix-Wstringop-trunca.patch -- 2.16.2 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-core/glibc/glibc/0029-Replace-strncpy-with-memccpy-to-fix-Wstringop-trunca.patch b/meta/recipes-core/glibc/glibc/0029-Replace-strncpy-with-memccpy-to-fix-Wstringop-trunca.patch new file mode 100644 index 0000000000..d65a293748 --- /dev/null +++ b/meta/recipes-core/glibc/glibc/0029-Replace-strncpy-with-memccpy-to-fix-Wstringop-trunca.patch @@ -0,0 +1,39 @@ +From 113e0516fbd3ce18253f0423762416d4c4b38fb0 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 22 Mar 2018 17:57:37 -0700 +Subject: [PATCH 29/29] Replace strncpy with memccpy to fix + -Wstringop-truncation. + + * nis/nss_nisplus/nisplus-parser.c: Replace strncpy with memcpy to + avoid -Wstringop-truncation. +--- +Upstream-Status: Submitted [https://sourceware.org/ml/libc-alpha/2018-03/msg00531.html] + + nis/nss_nisplus/nisplus-parser.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/nis/nss_nisplus/nisplus-parser.c b/nis/nss_nisplus/nisplus-parser.c +index 8dc021e73d..b53284f889 100644 +--- a/nis/nss_nisplus/nisplus-parser.c ++++ b/nis/nss_nisplus/nisplus-parser.c +@@ -87,7 +87,7 @@ _nss_nisplus_parse_pwent (nis_result *result, struct passwd *pw, + if (len >= room_left) + goto no_more_room; + +- strncpy (first_unused, numstr, len); ++ memcpy (first_unused, numstr, len); + first_unused[len] = '\0'; + numstr = first_unused; + } +@@ -103,7 +103,7 @@ _nss_nisplus_parse_pwent (nis_result *result, struct passwd *pw, + if (len >= room_left) + goto no_more_room; + +- strncpy (first_unused, numstr, len); ++ memcpy (first_unused, numstr, len); + first_unused[len] = '\0'; + numstr = first_unused; + } +-- +2.16.2 + diff --git a/meta/recipes-core/glibc/glibc_2.27.bb b/meta/recipes-core/glibc/glibc_2.27.bb index 4f6f58ccb1..4a461ab283 100644 --- a/meta/recipes-core/glibc/glibc_2.27.bb +++ b/meta/recipes-core/glibc/glibc_2.27.bb @@ -43,6 +43,7 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ file://0026-reset-dl_load_write_lock-after-forking.patch \ file://0027-Acquire-ld.so-lock-before-switching-to-malloc_atfork.patch \ file://0028-bits-siginfo-consts.h-enum-definition-for-TRAP_HWBKP.patch \ + file://0029-Replace-strncpy-with-memccpy-to-fix-Wstringop-trunca.patch \ " NATIVESDKFIXES ?= "" From patchwork Fri Mar 23 13:34:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 132343 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp604661ljb; Fri, 23 Mar 2018 06:35:14 -0700 (PDT) X-Google-Smtp-Source: AG47ELvI16zocQkgN6dM0sYV90bt8N2+eO2NbjwJjz4sMTNtKzG2S6W2AqR14U6x1MZpCOv4vF34 X-Received: by 2002:a17:902:8287:: with SMTP id y7-v6mr29548368pln.85.1521812114676; Fri, 23 Mar 2018 06:35:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521812114; cv=none; d=google.com; s=arc-20160816; b=ULnEwtbdZV7sETyAZfo6mzapxMmfj8WyOEdropZ2eAFIrGOHgczgXvRJalmLImIU2w ioHnAOK1RQ7BpZQJXZ/AQJEQPGSchIN50+kOGWaq4iX+DVvDz2PIMpih2yqZlSzbQfSW CvKpZfBtQFVRw5kzYnuooR4ot5dUn0nyoVv2neY5q9rsNtKaVN5w6cPXuRYc3zuEyd3H b8mOH8iNOYVlUcDI1vrGCDHjQthmFrlg5+SUnvlUvB73eXsdNQWkMQcesWaMBKun/kPW m5I8RMNRDevM47dW03t7Za25wsWoViligTLVm0EaINcyndaQaiKmL07R5rdIo9Wkj6vD gdVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=J4jOc0vfP+r1BxIWL/zAhYXqhJoI3siwUevl7KYBfR0=; b=Pk/vX+ddu+cXwS/tQCuJZ+XinGfhVE8OOtpGYVBZz46A/JvE8d0c+gqDCL/hde1nyk Q6RfIhey99h8BeDQO13c/8GAntZbDULO8fEwC5SqxCkmTih3KBB85T+5MnkKwCzba53g E54lejrdSbivnxgLnAUMGxTPS4QnusrT8WWpDH0FZIx0YTKcbyfHn2EB4oBGxI2oowyO 1GSeNhtYF5x/VudF5GvXtLdIUY5imdirGyjqn1QCCSWCBHIUyh3jqsGlVLqMR8z61UE8 NX0YuDpf8g0mgDG8YV5JttqjXYqxpzK06PV669RDBmIj4wvxs50vvjUkU2qlUMSE6ypV H0oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=ZDmXV2Hn; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id p26-v6si8659228pli.534.2018.03.23.06.35.08; Fri, 23 Mar 2018 06:35:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=ZDmXV2Hn; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id A486A7890E; Fri, 23 Mar 2018 13:35:02 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf0-f179.google.com (mail-pf0-f179.google.com [209.85.192.179]) by mail.openembedded.org (Postfix) with ESMTP id 5FCED78901 for ; Fri, 23 Mar 2018 13:34:56 +0000 (UTC) Received: by mail-pf0-f179.google.com with SMTP id d26so4714858pfn.5 for ; Fri, 23 Mar 2018 06:34:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CoxMi7Rqo8mDaKvkZGYZ4o1vPlG5kCobpida8SViMjg=; b=ZDmXV2Hnx+O8T8WinE2pdf3LE0WOZSXtQMKgx5x/uMU/IRFN5R10u85PU5WqeX20YX y9RZZF1CeC97HD5HZadZ7DqSIZ2oPt5fD+j8CSUzNT3mG4GFWEMsLal8fklRy/Cqea+3 IOIicuMXDWyNEtn5QOpNQ1k1mik7MBxRFMXtKrhfN6CxKHO7wM2VuUDJhgSyej5B0h7L QUhtu8w7va1yJJvF1kr5pmnrcp+rT937DJyV7pmMwhJjvaZUddYw4l3HjpL/Zw3YLYC1 jYqfGKrMCgNUgzNfVSe7qahXs1LZc2mv0sVtBjxsvqpz0aOL5UKaB3zpdRYyc2BXb9f5 4fBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CoxMi7Rqo8mDaKvkZGYZ4o1vPlG5kCobpida8SViMjg=; b=gHRGjWbElUr1D3nTrqmlv1aiT15opCTVMqMbLkwYtC7Z9FUNO1203g9dw/CWs7wpre ximVA3o3lRoff9DcV2p2vzRjzmU1isJiYNrqraJFt0F/FbLnyCybmvJ6Rq5O3RfeMBlY CdPlHPoOeidD2hw19FLNpoDFzZcmFyF2EImo1D0r1ds2fPgFGEk82uTjKRe8reRPdXgV y9UavvrFctk0jO4SGPIrI9HqhsgmQslyCHkP8xXCeny1CXIlOhC2ODXIzIb6SXID8ZTh tC2gm3/mWmpvODeNyb7plyecw1rtiNh6tMFaIn5SoYxpYIub7n7KOTR5QmYtEfon3LXb 6WuA== X-Gm-Message-State: AElRT7GYEESYqLlwR44WTDf5Oo8ccM+1V44tFRj4toPEoqCpYnRBonOu Y4/hIWa4+NEIP7SSiA9+F2g6mQ== X-Received: by 10.98.102.79 with SMTP id a76mr4336037pfc.162.1521812097444; Fri, 23 Mar 2018 06:34:57 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8880:466c:6245:cbff:fe64:591]) by smtp.gmail.com with ESMTPSA id q15sm18996375pfi.140.2018.03.23.06.34.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Mar 2018 06:34:56 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 23 Mar 2018 06:34:45 -0700 Message-Id: <20180323133445.15672-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323133445.15672-1-raj.khem@gmail.com> References: <20180323133445.15672-1-raj.khem@gmail.com> Subject: [OE-core] [PATCH 3/3] nss: Use snprintf in sign.c X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Fies security warnings | sign.c:86:31: error: 'sprintf' may write a terminating nul past the end of the destination [-Werror=format-overflow=] | sprintf(fullfn, "%s/%s", tree, tempfn); Signed-off-by: Khem Raj --- ...1437734-Use-snprintf-in-sign.c-r-ttaubert.patch | 119 +++++++++++++++++++++ meta/recipes-support/nss/nss_3.34.1.bb | 1 + 2 files changed, 120 insertions(+) create mode 100644 meta/recipes-support/nss/nss/0001-Bug-1437734-Use-snprintf-in-sign.c-r-ttaubert.patch -- 2.16.2 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-support/nss/nss/0001-Bug-1437734-Use-snprintf-in-sign.c-r-ttaubert.patch b/meta/recipes-support/nss/nss/0001-Bug-1437734-Use-snprintf-in-sign.c-r-ttaubert.patch new file mode 100644 index 0000000000..bc10f3385d --- /dev/null +++ b/meta/recipes-support/nss/nss/0001-Bug-1437734-Use-snprintf-in-sign.c-r-ttaubert.patch @@ -0,0 +1,119 @@ +From 6f7d7be9997ba6727a5ad7c3800df9051160dc12 Mon Sep 17 00:00:00 2001 +From: Martin Thomson +Date: Tue, 13 Feb 2018 12:30:58 +1100 +Subject: [PATCH] Bug 1437734 - Use snprintf in sign.c, r=ttaubert + +--HG-- +extra : rebase_source : 97921ece71ff86b18d32b891591608290eed4d83 +--- +Signed-off-by: Khem Raj +Upstream-Status: Backport [https://github.com/nss-dev/nss/commit/0a9078b3cde97add7c825c9d13467a8401ad0c88#diff-b42512151dc137537091f823f7701804.patch] + + nss/cmd/signtool/sign.c | 58 ++++++++++++++++++++++++++++++++++++++++--------- + 1 file changed, 48 insertions(+), 10 deletions(-) + +diff --git a/nss/cmd/signtool/sign.c b/nss/cmd/signtool/sign.c +index 6e776069a..6f8e43946 100644 +--- a/nss/cmd/signtool/sign.c ++++ b/nss/cmd/signtool/sign.c +@@ -43,6 +43,7 @@ SignArchive(char *tree, char *keyName, char *zip_file, int javascript, + int status; + char tempfn[FNSIZE], fullfn[FNSIZE]; + int keyType = rsaKey; ++ int count; + + metafile = meta_file; + optimize = _optimize; +@@ -81,9 +82,18 @@ SignArchive(char *tree, char *keyName, char *zip_file, int javascript, + } + + /* rsa/dsa to zip */ +- sprintf(tempfn, "META-INF/%s.%s", base, (keyType == dsaKey ? "dsa" +- : "rsa")); +- sprintf(fullfn, "%s/%s", tree, tempfn); ++ count = snprintf(tempfn, sizeof(tempfn), "META-INF/%s.%s", base, (keyType == dsaKey ? "dsa" : "rsa")); ++ if (count >= sizeof(tempfn)) { ++ PR_fprintf(errorFD, "unable to write key metadata\n"); ++ errorCount++; ++ exit(ERRX); ++ } ++ count = snprintf(fullfn, sizeof(fullfn), "%s/%s", tree, tempfn); ++ if (count >= sizeof(fullfn)) { ++ PR_fprintf(errorFD, "unable to write key metadata\n"); ++ errorCount++; ++ exit(ERRX); ++ } + JzipAdd(fullfn, tempfn, zipfile, compression_level); + + /* Loop through all files & subdirectories, add to archive */ +@@ -93,20 +103,44 @@ SignArchive(char *tree, char *keyName, char *zip_file, int javascript, + } + /* mf to zip */ + strcpy(tempfn, "META-INF/manifest.mf"); +- sprintf(fullfn, "%s/%s", tree, tempfn); ++ count = snprintf(fullfn, sizeof(fullfn), "%s/%s", tree, tempfn); ++ if (count >= sizeof(fullfn)) { ++ PR_fprintf(errorFD, "unable to write manifest\n"); ++ errorCount++; ++ exit(ERRX); ++ } + JzipAdd(fullfn, tempfn, zipfile, compression_level); + + /* sf to zip */ +- sprintf(tempfn, "META-INF/%s.sf", base); +- sprintf(fullfn, "%s/%s", tree, tempfn); ++ count = snprintf(tempfn, sizeof(tempfn), "META-INF/%s.sf", base); ++ if (count >= sizeof(tempfn)) { ++ PR_fprintf(errorFD, "unable to write sf metadata\n"); ++ errorCount++; ++ exit(ERRX); ++ } ++ count = snprintf(fullfn, sizeof(fullfn), "%s/%s", tree, tempfn); ++ if (count >= sizeof(fullfn)) { ++ PR_fprintf(errorFD, "unable to write sf metadata\n"); ++ errorCount++; ++ exit(ERRX); ++ } + JzipAdd(fullfn, tempfn, zipfile, compression_level); + + /* Add the rsa/dsa file to the zip archive normally */ + if (!xpi_arc) { + /* rsa/dsa to zip */ +- sprintf(tempfn, "META-INF/%s.%s", base, (keyType == dsaKey ? "dsa" +- : "rsa")); +- sprintf(fullfn, "%s/%s", tree, tempfn); ++ count = snprintf(tempfn, sizeof(tempfn), "META-INF/%s.%s", base, (keyType == dsaKey ? "dsa" : "rsa")); ++ if (count >= sizeof(tempfn)) { ++ PR_fprintf(errorFD, "unable to write key metadata\n"); ++ errorCount++; ++ exit(ERRX); ++ } ++ count = snprintf(fullfn, sizeof(fullfn), "%s/%s", tree, tempfn); ++ if (count >= sizeof(fullfn)) { ++ PR_fprintf(errorFD, "unable to write key metadata\n"); ++ errorCount++; ++ exit(ERRX); ++ } + JzipAdd(fullfn, tempfn, zipfile, compression_level); + } + +@@ -408,6 +442,7 @@ static int + manifesto_xpi_fn(char *relpath, char *basedir, char *reldir, char *filename, void *arg) + { + char fullname[FNSIZE]; ++ int count; + + if (verbosity >= 0) { + PR_fprintf(outputFD, "--> %s\n", relpath); +@@ -421,7 +456,10 @@ manifesto_xpi_fn(char *relpath, char *basedir, char *reldir, char *filename, voi + if (!PL_HashTableLookup(extensions, ext)) + return 0; + } +- sprintf(fullname, "%s/%s", basedir, relpath); ++ count = snprintf(fullname, sizeof(fullname), "%s/%s", basedir, relpath); ++ if (count >= sizeof(fullname)) { ++ return 1; ++ } + JzipAdd(fullname, relpath, zipfile, compression_level); + + return 0; diff --git a/meta/recipes-support/nss/nss_3.34.1.bb b/meta/recipes-support/nss/nss_3.34.1.bb index ae52a95a30..1af68acfb3 100644 --- a/meta/recipes-support/nss/nss_3.34.1.bb +++ b/meta/recipes-support/nss/nss_3.34.1.bb @@ -26,6 +26,7 @@ SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${VERSIO file://disable-Wvarargs-with-clang.patch \ file://pqg.c-ULL_addend.patch \ file://Fix-compilation-for-X32.patch \ + file://0001-Bug-1437734-Use-snprintf-in-sign.c-r-ttaubert.patch \ " SRC_URI[md5sum] = "5922468bb1c54e4c8067f153fcf467e5"