From patchwork Mon Apr 8 21:26:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 161954 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp4173017jan; Mon, 8 Apr 2019 14:29:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7wpev5Z7D7/0d6YZ40WXKtje19vfHA7L5z2w0XYm5IUgw14hQE9x53z0BT5lSEvOFzchU X-Received: by 2002:a65:4108:: with SMTP id w8mr30499762pgp.236.1554758961116; Mon, 08 Apr 2019 14:29:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554758961; cv=none; d=google.com; s=arc-20160816; b=WDDW2ixEjicbb90Qrex28E8FD+koeVkCYFEBv4fwjQ5v3XUb+DUBqDHXNqO/f2Prrw 2tkyw6wOxYXj8csMS0OK83l0oCm3v8Af74hCPVUwQyyP+qVwejh0ZWFrPhPhW7O6TMwa EgQQP2shT2Xoh+Cphzly191FrNBm+VIFszoE36kH/DCmqdksjnzXCedPRyymO/a5f3Vi o/JhGCNAmhMGbgCBg9ZNQz2zh4QEQqV8sFicvh6jfzaGu07IjLd9ok1TDjTv0qbyksl/ uphx4qvjQW3J9S8y5bKx0Zjwt1mvMzID9aJcAT9jlPH17z7CfIsjylfxNc496eliRXbM 90kw== 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 g2si23524971pgi.19.2019.04.08.14.29.20; Mon, 08 Apr 2019 14:29:21 -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 S1728867AbfDHV3T (ORCPT + 31 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 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(-) -- 2.20.0 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 $@;