From patchwork Fri Jul 15 01:49:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 72057 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp368790qga; Thu, 14 Jul 2016 18:49:20 -0700 (PDT) X-Received: by 10.98.206.129 with SMTP id y123mr17313561pfg.7.1468547360571; Thu, 14 Jul 2016 18:49:20 -0700 (PDT) Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id oy8si6092613pac.126.2016.07.14.18.49.20; Thu, 14 Jul 2016 18:49:20 -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; 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 Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 0069F731D2; Fri, 15 Jul 2016 01:49:02 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mail.openembedded.org (Postfix) with ESMTP id C42066FF93 for ; Fri, 15 Jul 2016 01:49:00 +0000 (UTC) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 14 Jul 2016 18:49:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,365,1464678000"; d="scan'208";a="995612653" Received: from timo-fedora.jf.intel.com ([10.7.201.162]) by orsmga001.jf.intel.com with ESMTP; 14 Jul 2016 18:49:02 -0700 From: Tim Orling To: openembedded-core@lists.openembedded.org Date: Thu, 14 Jul 2016 18:49:33 -0700 Message-Id: <10d2d3665114bd533e25db3a3d531e9fdc997391.1468546499.git.timothy.t.orling@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Subject: [OE-core] [krogoth][PATCH 2/8] elfutils-0.148: Fix build with gcc6 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 From: Khem Raj (From OE-Core rev: c2668171f5d76bfea085ecf2fa7dfe1e42df1e63) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- .../elfutils/elfutils-0.148/gcc6.patch | 23 ++++++++++++++++++++++ meta/recipes-devtools/elfutils/elfutils_0.148.bb | 1 + 2 files changed, 24 insertions(+) create mode 100644 meta/recipes-devtools/elfutils/elfutils-0.148/gcc6.patch -- 2.7.4 -- _______________________________________________ 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.148/gcc6.patch b/meta/recipes-devtools/elfutils/elfutils-0.148/gcc6.patch new file mode 100644 index 0000000..b56a754 --- /dev/null +++ b/meta/recipes-devtools/elfutils/elfutils-0.148/gcc6.patch @@ -0,0 +1,23 @@ +Fix warnings found with gcc6 + +| ../../elfutils-0.148/libdw/dwarf_siblingof.c: In function 'dwarf_siblingof': +| ../../elfutils-0.148/libdw/dwarf_siblingof.c:69:6: error: nonnull argument 'result' compared to NULL [-Werror=nonnull-compare] +| if (result == NULL) +| ^ + +Signed-off-by: Khem Raj +Upstream-Status: Inappropriate [ unmaintained ] +Index: elfutils-0.148/libdw/dwarf_siblingof.c +=================================================================== +--- elfutils-0.148.orig/libdw/dwarf_siblingof.c ++++ elfutils-0.148/libdw/dwarf_siblingof.c +@@ -66,9 +66,6 @@ dwarf_siblingof (die, result) + if (die == NULL) + return -1; + +- if (result == NULL) +- return -1; +- + if (result != die) + result->addr = NULL; + diff --git a/meta/recipes-devtools/elfutils/elfutils_0.148.bb b/meta/recipes-devtools/elfutils/elfutils_0.148.bb index ff53257..6080c17 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.148.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.148.bb @@ -34,6 +34,7 @@ SRC_URI += "\ file://Fix_elf_cvt_gunhash.patch \ file://elf_begin.c-CVE-2014-9447-fix.patch \ file://fix-build-gcc-4.8.patch \ + file://gcc6.patch \ " # Only apply when building uclibc based target recipe SRC_URI_append_libc-uclibc = " file://uclibc-support-for-elfutils-0.148.patch"