Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3252152yba; Mon, 8 Apr 2019 14:36:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPWR84d7eWxO/qdDo9ryUPwIDnec25UpN0DrKe1lYEHq3renOO2njw/KlP8Uk4JE2mCEgA X-Received: by 2002:a65:5049:: with SMTP id k9mr31408054pgo.229.1554759416439; Mon, 08 Apr 2019 14:36:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554759416; cv=none; d=google.com; s=arc-20160816; b=sL9I9GoLQOeImpBL8aqy3QFUAAzDwABvojlnH2VBCOayXqHv80uBYzS4F2l65KfSvT bAEYP9qKnQArtE0WRaYAKR0UGI+2wXogDG+eZxn82MVmiIJlJ7xiNYc3H0ZrTiYE7cg0 s1kXNvN42sUjS8CbQX3uS4Ao7zkVIPGphAySq504Fp6qyozNFSJfU5fEUuJyRRZsCF9j 3ZYBa+T9eC7f24pds8Qa8gK+8mczEqr91HjOumAzwumVI2LhY+sRlFXkbp8f+6axajBt XBrTt7TDD8FnFLrxTodGGHOS2GqC5yVxg/O52zrBfw0eyLA62FzzOM4ZPMoPMolTlHuH 5qqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=TJ6VMpWFz5Xq4QRM772ului09G3kfIlozSjX3AUzv8c=; b=KWkkgUvEPjlLFHeqhiAaTiKt6W1Agu8D8noz/5KqzTsDTtXjK0eb8vrfIXCMZNlcC4 8G8XNszcDoxbrxAyOGik/KXHYWe1Ij6uYa6Qj8hbEZM0BWcZWnBUWXW7FgyNscSBW/+I ixm2NQ3x7CiQSO3Xf+iXIDjZMXFhHPoA5kvzc74ftcWT2gA/HnLP7ejeywFWnOeseQae DZAbtmNOS3CW6N/mtu4PqH6lz3JCHc6QEa5VVZZlc2r44RNTLPzcmk/+RHwxZ0C88HCH UY03XyqLZXhE60QHwkSiqEZuxkWMNS8AmBcexwrVicXXBYU4G5mrLOwDXBdfkTNysGi7 THFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si26953129pgr.253.2019.04.08.14.36.41; Mon, 08 Apr 2019 14:36:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728673AbfDHV3T (ORCPT + 99 others); Mon, 8 Apr 2019 17:29:19 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:44705 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726509AbfDHV3S (ORCPT ); Mon, 8 Apr 2019 17:29:18 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1MhlbM-1gienQ0MDI-00dleu; Mon, 08 Apr 2019 23:29:12 +0200 From: Arnd Bergmann To: Martin Schwidefsky , Heiko Carstens Cc: clang-built-linux@googlegroups.com, Nick Desaulniers , Nathan Chancellor , linux-s390@vger.kernel.org, Arnd Bergmann , Vasily Gorbik , linux-kernel@vger.kernel.org Subject: [PATCH 11/12] s390: make chkbss work with clang Date: Mon, 8 Apr 2019 23:26:24 +0200 Message-Id: <20190408212648.2407234-11-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190408212648.2407234-1-arnd@arndb.de> References: <20190408212648.2407234-1-arnd@arndb.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:JevfzJx4fIfYNJndOqX74ucOpNeZfT8bjeYo5HS8OguBpS5HM4Q lyBN26av2aV+Y032TVD73BQWRbk9hnvQwMa4Jf2ZpVPNupY/TXvU6rI1v2dRr0sYkGGZCru 3es5GqfvB7EHqLkummqS/jeGE56n3erGUb8uixlCZtZpZ9o+l9HB1GvnjJVAI2DYgiD1e8u ii45TNq1A0gnoXuZV6ODw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:NHnlcFH3UL0=:jq37TD68eL5xTfi7Mz4t5m 4deZJoNaTPB49+2OT7RV0L9dldCu7loL0KZG9WCOfyMbSflQMbzV85tgozSbLa9GMQgHC7wB0 GUq/429HeqT5fuudkGhccso7HNLWoU5wgIjU4GuHdpS4ktcVmw0hCxNo1IxKVG8mTm/vKwYVj XfzqaUEYY69ESM9QopLdi9ylljX+lqzFainXrsoG29gft6jL5EEBxugr5t40kdf2tCzD9RXI5 YHbqr/VhZbgQIC1zn8bjt8TGm0RaS3kHhcGi9k3sfsFJxxaSWWcFat9RJM7AovQILSjG0E8pC n65s9WSZifQKdwhedcq8k5yHDyj79l5YYsGMSKgVjpzUutOhhQArc8SEgU/D+HyRjgyxJcGzK Uaqp8lOHotvZjFtdyxOAMbqdfXURuhqLSZNpwb6/vV7E+itIE3+FOC6I5QEXMI+ue9RU3JLNi xx4oFCF3+60ZvR0tG8c3Kyre5+8D3TbI2RQnQ1nb9Oa0aj8VvbiqlvaXvN+5FiB6w7lZ5RPMY 9QG2ajlz3iht5CJDhdF/4oVSmYVaA6kFiMkyW9eMbpbVoZDsBvj1XlgrYvwv2wFiWxYvXecZ5 V/I7NOY2bYqazhMGstyXhrDbXMbTTDqHtYQ1MK3SJ+DuO4l/3VGtn75+qrVhRWEdwkGcgMRI6 0RQw2hU8Qc0rjk/7Y3rtR0eZV3noFBfPLzlNa+qqlz1IOvKSbdKoR3fkMEKWSE/vujgNzK3ui lc+zJr4AWX7m7pmLwaQi+ZKSGG6boo/mHmBvHA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org llvm skips an empty .bss section entirely, which makes the check fail with an unexpected error: /tmp/binutils-multi-test/bin/s390x-linux-gnu-objdump: section '.bss' mentioned in a -j option, but not found in any input file error: arch/s390/boot/compressed/decompressor.o .bss section is not empty ../arch/s390/scripts/Makefile.chkbss:20: recipe for target 'arch/s390/boot/compressed/decompressor.o.chkbss' failed Change the check so we first see if a .bss section exists before trying to read its size. Signed-off-by: Arnd Bergmann --- arch/s390/scripts/Makefile.chkbss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/s390/scripts/Makefile.chkbss b/arch/s390/scripts/Makefile.chkbss index cd7e8f4419f5..884a9caff5fb 100644 --- a/arch/s390/scripts/Makefile.chkbss +++ b/arch/s390/scripts/Makefile.chkbss @@ -11,7 +11,8 @@ chkbss: $(addprefix $(obj)/, $(chkbss-files)) quiet_cmd_chkbss = CHKBSS $< cmd_chkbss = \ - if ! $(OBJDUMP) -j .bss -w -h $< | awk 'END { if ($$3) exit 1 }'; then \ + if $(OBJDUMP) -h $< | grep -q "\.bss" && \ + ! $(OBJDUMP) -j .bss -w -h $< | awk 'END { if ($$3) exit 1 }'; then \ echo "error: $< .bss section is not empty" >&2; exit 1; \ fi; \ touch $@; -- 2.20.0