From patchwork Fri Dec 7 03:12:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 153084 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp19993ljp; Thu, 6 Dec 2018 19:12:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/XNqJbdWwJCiA+GOvunPltN87kH95hFZn1cDQyBky0q4w/VtbB2rdF/ugnILQ/BiDaBx30i X-Received: by 2002:a65:41c2:: with SMTP id b2mr493464pgq.67.1544152371894; Thu, 06 Dec 2018 19:12:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544152371; cv=none; d=google.com; s=arc-20160816; b=QmlRjlJWYBToHAzzGoihZwET51siSVhY8mxHEq3t49jnH7QMbE5P7VGUjZYwDzp1xd S5R4JdA+dmTbxnX6Xb/o52pkeXikvHU3HqLPVt/p6qE04Mr7a+RjURnZH0wauLcD01lq sGZ6FQx7zrWi0cJcjrzL9+Hpjyssfds1JWXGZMekPo9Y0zZVQja1J6xP9hn4zvLiP8kI A2J6JvOUQ5HtPotJ+ttUtlB5IE/bO3jfh4L+PKh2dCLci9f1T+iyVhV3p/vp/nnUEJRE DAUyVB3YakKxVihXfVqxxgHAENphQgG/gn2StVIeQ6lVfm0Br0pt0UOWtN73SiEm7ZjP O+3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=9IEls6+v30CE+dqAGuicnmwdZ4Nz+m157xtz11XwfC8=; b=FdTh6vwvwrwsOuJFvAZfT8j11K2KdV7stZXBjPVoiM90QFuEt1tbrmRh0T9dUrGVUj pbaGRbXk/lHcGX1mvGQxST25dtO7g00iLXewPzcY7RLRAQDaAsCURIZXw8FYwmMnCwVo vfiKN0uQ3Hv9Hpy/yRHLnU7SU518dM68tkNYubUmz4k067frmL7RpCV9fN+s9kKUjWeK TUK5nEspwHN5JeL66adZ2bORqxaKOOMTDO3kbmh1CqjbWy6sAkZWMjfjmHCOStHklFOy aXBo6Iwi6dMr7wC6+GOYN4DmJeXe7MCxb6SzukCRG1P26vK7emJtZzqEdrEnEizO3nYn kN0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="EBEUVxk/"; 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 v34si1795470plg.205.2018.12.06.19.12.50; Thu, 06 Dec 2018 19:12:51 -0800 (PST) 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="EBEUVxk/"; 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 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id AD96278C9C; Fri, 7 Dec 2018 03:12:43 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by mail.openembedded.org (Postfix) with ESMTP id BEFAE6B8BC for ; Fri, 7 Dec 2018 03:12:41 +0000 (UTC) Received: by mail-pf1-f196.google.com with SMTP id w73so1191268pfk.10 for ; Thu, 06 Dec 2018 19:12:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1GsULuhdVyje9fopNjycaY5nitf2hslYnVefCXVd2zs=; b=EBEUVxk/H8t3q/ZHNfOrHVNHZ2OeqPfLqZGJBIycdMyfI22s0j3oK/0K/+Iiu9HBn8 VVXb4pTw6RVOfasgFnvQjVL9aSwpy9tGrNiPcnZeVdKQdyg9fTufrRUR5imQd4kV5P99 pdzJ8KVRxHbRCwEhyqEP1mqe8/QTC5QJe2YvCkKcium6dHGK8A2a+GlIL9TEg4mA9c4h 7tSZCK+m2BYYQ/TmLk3O4p79SYYDKV9ENbO59XcEoe4Mkqd3U2apKNOL7vrVQUdU7MFn krREFPi2ltaZ/4qEQBfOxsWC7JA3GOx/S0fXXabba4kl4CaK4gY5mRB6rQtZpUoow0m+ zufg== 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:mime-version :content-transfer-encoding; bh=1GsULuhdVyje9fopNjycaY5nitf2hslYnVefCXVd2zs=; b=nNvLcFghb9V78LGmM+C5G9XFOwTx7LY/tANSqTVvKpNvMK3ih8O+0/QtKN9Kk+qQMC 2WgPKH9XU7r16dqASrFXCY5lFxKhDcZxLeUPG0jeVyOUasRWWS0IeG0gCJJqF53ywFpQ 9GDv/OBcvh4renGhySBn1x94Ujk58avhWbM3lqhxqdm/sTO6Eb6bdPioZ0wFlU8VKUIy EzosHtAB9es0pruZNUXwsARgEY4+SoZoCswM7z1abZn+eWuEq2SHooqCwybA1ndU9EtZ M5NOqZiTxejsV9POD7LAnQhZ9TeTTNiqRH7UZYMPVGCNFT3QlTCKwXL7jj6h3T49pZGp aWaQ== X-Gm-Message-State: AA+aEWYyzoMs4QwrJn4HUzzxx2o8GPZSSU6R5iY0TKnPvxJmr3WAe9aT rjL/6gyKEgkSzvMxZkHA4XJ/wknhby8= X-Received: by 2002:a63:d949:: with SMTP id e9mr523218pgj.24.1544152361927; Thu, 06 Dec 2018 19:12:41 -0800 (PST) Received: from localhost.localdomain ([2601:646:877f:9499::5f84]) by smtp.gmail.com with ESMTPSA id 128sm2816266pfu.129.2018.12.06.19.12.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Dec 2018 19:12:41 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 6 Dec 2018 19:12:33 -0800 Message-Id: <20181207031233.5127-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Subject: [OE-core] [PATCH] binutils: Fix build with clang 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../binutils/binutils-2.31.inc | 1 + .../binutils/binutils/clang-bfd-fix.patch | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 meta/recipes-devtools/binutils/binutils/clang-bfd-fix.patch -- 2.19.2 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/binutils/binutils-2.31.inc b/meta/recipes-devtools/binutils/binutils-2.31.inc index 0c9d4cef21..c3c15fb416 100644 --- a/meta/recipes-devtools/binutils/binutils-2.31.inc +++ b/meta/recipes-devtools/binutils/binutils-2.31.inc @@ -41,6 +41,7 @@ SRC_URI = "\ file://0019-Improved-robustness.-Return-FALSE-in-case-of-NULL-po.patch \ file://0020-Make-sure-global-symbol-is-not-an-indirect-or-warnin.patch \ file://0021-PLT-information-was-still-being-generated-when-symbo.patch \ + file://clang-bfd-fix.patch \ file://CVE-2018-17358.patch \ file://CVE-2018-17360.patch \ file://CVE-2018-18309.patch \ diff --git a/meta/recipes-devtools/binutils/binutils/clang-bfd-fix.patch b/meta/recipes-devtools/binutils/binutils/clang-bfd-fix.patch new file mode 100644 index 0000000000..caf78488df --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/clang-bfd-fix.patch @@ -0,0 +1,32 @@ +Fix compiler error seen with clang, The return value of this +function is not checked anywhere so in a way its useless but +still technically correct to return a value here + +Fixes + +../../bfd/reloc.c:1638:7: error: non-void function '_bfd_clear_contents' should return a value [-Wreturn-type] + return; + ^ +1 error generated. + +It has been fixed in master along with a larger cleanup and fix for relocations + +https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=1dc9e2d63e37839ff1768346b2e3f52e338baba5 + +Upstream-Status: Backport [Fixes differently] + +Signed-off-by: Khem Raj + +Index: git/bfd/reloc.c +=================================================================== +--- git.orig/bfd/reloc.c ++++ git/bfd/reloc.c +@@ -1635,7 +1635,7 @@ _bfd_clear_contents (reloc_howto_type *h + default: + abort (); + case 0: +- return; ++ return 0; + case 1: + x = bfd_get_8 (input_bfd, location); + break;