Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6964710ybx; Mon, 11 Nov 2019 18:23:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwSVhPS5zxCcrERhWmUjSOG8CHErL+IQwUd4gC4iaXkLvbuqfxs3XubHKetqKnLOxwZ1nMo X-Received: by 2002:aa7:c894:: with SMTP id p20mr31005038eds.145.1573525408916; Mon, 11 Nov 2019 18:23:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573525408; cv=none; d=google.com; s=arc-20160816; b=t6gIWJBkV64KrjCeR0VhDL5KFkPfH1Afhyok7mn4VHqh4jVwgurmoE6tMryKNbh0k9 /ljhPLc5P47HKf5CVODZLFJVkK0EoNfCskt7TxkmLtbhjqZtHyMqETrs9q8MbvEuk1PK JWcWvtX2pRGeGkmcuEKT0tauF/38d77eLa0fhAukldrIfQcITnVSiJYBM/ui78U4gKwZ ZSPUsrOrssBWnScxC6Vo5SgGBpi9bHHB2YpM4+3U+FFWRCoCsRO9OP88fStDDCG8tu3i s+M2iQig1hxND+SwgKgjC3fR4UnQLDZIS3aHBEmJssUER+LgcnO+83erwls3/fnlpjq0 6ffQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=y7MzE4Tyl7ZA6/nakd70Ls06yxLts/TrU5ic+fxvtfo=; b=sE21VBn4S4NWcPqT/LwQR82Lpm1pRz6dOpG+qpWh9Cl9Yctu5kqhx2t3e2CDU4S1d5 uMRcwnZNJ/pbhoDGiCzdC1hGmwupT8esqDaYBM6OM4y31/xb3/7jJPxWMTyjwXfSVPix 6xDu3cgKXRqKae7+1CqksOOETX/yMib5qO6IWPyLksmkavs24eC/iQbC7u9iSfnokvU6 oj8Uob6XDyZLVJzGbXuFeHZeSjigBhy66wyze7v1CvTxMiddhP9kQKvbYtLLTZcwsz/h ODCFinDuWX40lQZ6VPRIzaYjMSQdmnDLomX24HRnfp6+zlyxO8mwN1bK+cNMqUeN9opu Fxsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=C1aJehxV; 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 m27si6535367ejd.377.2019.11.11.18.23.04; Mon, 11 Nov 2019 18:23:28 -0800 (PST) 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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=C1aJehxV; 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 S1726981AbfKLCV5 (ORCPT + 99 others); Mon, 11 Nov 2019 21:21:57 -0500 Received: from conssluserg-06.nifty.com ([210.131.2.91]:53362 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726924AbfKLCV5 (ORCPT ); Mon, 11 Nov 2019 21:21:57 -0500 Received: from mail-vs1-f41.google.com (mail-vs1-f41.google.com [209.85.217.41]) (authenticated) by conssluserg-06.nifty.com with ESMTP id xAC2Lku3003792 for ; Tue, 12 Nov 2019 11:21:47 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com xAC2Lku3003792 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1573525307; bh=y7MzE4Tyl7ZA6/nakd70Ls06yxLts/TrU5ic+fxvtfo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=C1aJehxV1KpU4kD1mebXEvYGbuHV1tCyJy2FgOKgNde7u2m1urDSByV5602GtcEHX AbncWs7376oCtbr6pE6+8WodZdJ6DEmPBTHUceX++/I31xaXYpWxg88hWYYb0qSAAm MSiXMDyNTgvdPQaL7wVmb69zJOdVM5H6SjQWOxj/pLSjHvC+xSMeobV8g1+2iHbQKM Hkjxc5QOp8l4aqW1LnBreKskO85rXCrrZQp/a7Cq60hklcZ5Krao+n2Az7MAy9GZQs sf0/HAmVY/DJ6ZwGGZkfKJO30z/Ca9ZX1nsD8L23ammk/W3EWdYBG19FjQsKYWzxKp lP7Coi4msZfdg== X-Nifty-SrcIP: [209.85.217.41] Received: by mail-vs1-f41.google.com with SMTP id b16so9762987vso.10 for ; Mon, 11 Nov 2019 18:21:46 -0800 (PST) X-Gm-Message-State: APjAAAWzYx0R2y6V9EpgC0qRQtuXg2OzKBC1HkbOsaCr4IYHW27HJ25b xZUAplKwKQ+kgKNHFvJkmOHbSnyiEyN/bXJSzsk= X-Received: by 2002:a05:6102:726:: with SMTP id u6mr20193685vsg.179.1573525305837; Mon, 11 Nov 2019 18:21:45 -0800 (PST) MIME-Version: 1.0 References: <20191110153043.111710-1-dima@golovin.in> In-Reply-To: <20191110153043.111710-1-dima@golovin.in> From: Masahiro Yamada Date: Tue, 12 Nov 2019 11:21:09 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ARM: kbuild: use correct nm executable To: Dmitry Golovin Cc: Ard Biesheuvel , Nick Desaulniers , Nicolas Pitre , Matthias Maennich , Russell King , Stefan Agner , Linux Kernel Mailing List , clang-built-linux , Nathan Chancellor , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 11, 2019 at 12:32 AM Dmitry Golovin wrote: > > Since $(NM) variable can be easily overridden for the whole build, it's > better to use it instead of $(CROSS_COMPILE)nm. The use of $(CROSS_COMPILE) > prefixed variables where their calculated equivalents can be used is > incorrect. This fixes issues with builds where $(NM) is set to llvm-nm. > > Link: https://github.com/ClangBuiltLinux/linux/issues/766 > Signed-off-by: Dmitry Golovin > Suggested-by: Nick Desaulniers > Cc: Matthias Maennich > --- Reviewed-by: Masahiro Yamada > arch/arm/boot/compressed/Makefile | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile > index 9219389bbe61..a1e883c5e5c4 100644 > --- a/arch/arm/boot/compressed/Makefile > +++ b/arch/arm/boot/compressed/Makefile > @@ -121,7 +121,7 @@ ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin -I$(obj) > asflags-y := -DZIMAGE > > # Supply kernel BSS size to the decompressor via a linker symbol. > -KBSS_SZ = $(shell echo $$(($$($(CROSS_COMPILE)nm $(obj)/../../../../vmlinux | \ > +KBSS_SZ = $(shell echo $$(($$($(NM) $(obj)/../../../../vmlinux | \ > sed -n -e 's/^\([^ ]*\) [AB] __bss_start$$/-0x\1/p' \ > -e 's/^\([^ ]*\) [AB] __bss_stop$$/+0x\1/p') )) ) > LDFLAGS_vmlinux = --defsym _kernel_bss_size=$(KBSS_SZ) > @@ -165,7 +165,7 @@ $(obj)/bswapsdi2.S: $(srctree)/arch/$(SRCARCH)/lib/bswapsdi2.S > # The .data section is already discarded by the linker script so no need > # to bother about it here. > check_for_bad_syms = \ > -bad_syms=$$($(CROSS_COMPILE)nm $@ | sed -n 's/^.\{8\} [bc] \(.*\)/\1/p') && \ > +bad_syms=$$($(NM) $@ | sed -n 's/^.\{8\} [bc] \(.*\)/\1/p') && \ > [ -z "$$bad_syms" ] || \ > ( echo "following symbols must have non local/private scope:" >&2; \ > echo "$$bad_syms" >&2; false ) > -- > 2.23.0 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Best Regards Masahiro Yamada