Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1083917pxk; Fri, 25 Sep 2020 05:58:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzy41BUunQLbpSpp9YtJvs6/O9D16+luqWc4hYmh2L1AdBl3mPHKHrWJ+77+M/GghPk7HSv X-Received: by 2002:a50:ed02:: with SMTP id j2mr1184446eds.137.1601038691813; Fri, 25 Sep 2020 05:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601038691; cv=none; d=google.com; s=arc-20160816; b=RUVmBbO0As43/sXVdNq8p9iKKD3Ak/X6jiYLuPiraFpYHSNhkvZx9xhqPmedTOztT7 C7a7oWV6gNlGjtWleQvdfJCJAdRwI4KiFushZ/dp8sD9AFkldrUHA/i6t3jPNQXjl68d w8a+/IINxyyvZK5aUYwFXR4VlO+8gjluOgRqQzSnXuhiL9jvfVvLSMdasJRi3NHChoSm ul35ZqGpuLJtV9kOyVu2+KgIQH5iTBuSrW6T1zIFUWb+CeqCn8stUgXgdxt1wONhl83b 5s/Jt8Ivr/V42nR23pf6PpIFxm0m4iyPsNrWIJzQ1hDqE8oaLmJL5GX0KhkOlkoVf04a EPUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rcLe+oqCOK/Q41pVh0M7tcsLUbB0ZmiXq1NvYSPUEwI=; b=bA/L9xwXHQvqbDB0sku7LI7JdLejNI/vZMR8cvj47ZV8ocDIEifAlxNmQyHs08/ffa b9NEJiZeXyMCctnT4Ym17YFc2TC6KuR7wFEb02/6bbyeFsH6zJkDPhlOooVqY6jscVkK BDjHkdQHe7/pOIWFG2WtcAD9it/UKo5sg4lykTLWuZUpGTTLFh8TLkEA7nhcxSGR5NOT iIyel6YWslxUI1e9ZDWuDTyw+KTsMfUmd1fV89yrDiH9h2mLSE2FqtuM0QKpoURGpaNP VKBLxzUcoTT/F9jc+RraYYXOWk9iaUhLVbkNd5g7M7taL8jyokZ1MPdkhFZWE5n/WTPD b9Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="OIG/CmEE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si1712131ejg.90.2020.09.25.05.57.48; Fri, 25 Sep 2020 05:58:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="OIG/CmEE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729545AbgIYMyS (ORCPT + 99 others); Fri, 25 Sep 2020 08:54:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:60780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729541AbgIYMyQ (ORCPT ); Fri, 25 Sep 2020 08:54:16 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 63C7F2075E; Fri, 25 Sep 2020 12:54:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601038456; bh=3A5Z+0wLGFkxkrmaNck/0RAb6jdeZ0pikk3M2UFVIlk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OIG/CmEERU+Y7zYD7PilzvytSrx19q8QUeZMd7ezbxYa0i8HAl5rbx5a7SKAduDa5 CmCEsQX3kPAYzWVfDB77vbafVw3/ePX6uO/vLRP1ekTt7Jcglxv9EoEhlXXeJg0Zco VuvQDT4jJ+/+sgpj9FSTB2B5fcgbN/rrA50Ak5Ko= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masahiro Yamada , Vasily Gorbik Subject: [PATCH 4.19 25/37] kbuild: add OBJSIZE variable for the size tool Date: Fri, 25 Sep 2020 14:48:53 +0200 Message-Id: <20200925124724.755101607@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200925124720.972208530@linuxfoundation.org> References: <20200925124720.972208530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vasily Gorbik commit 7bac98707f65b93bf994ef4e99b1eb9e7dbb9c32 upstream. Define and export OBJSIZE variable for "size" tool from binutils to be used in architecture specific Makefiles (naming the variable just "SIZE" would be too risky). In particular this tool is useful to perform checks that early boot code is not using bss section (which might have not been zeroed yet or intersects with initrd or other files boot loader might have put right after the linux kernel). Link: http://lkml.kernel.org/r/patch-1.thread-2257a1.git-188f5a3d81d5.your-ad-here.call-01565088755-ext-5120@work.hours Acked-by: Masahiro Yamada Signed-off-by: Vasily Gorbik [nd: conflict in exported vars list from not backporting commit e83b9f55448a ("kbuild: add ability to generate BTF type info for vmlinux")] Signed-off-by: Greg Kroah-Hartman --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/Makefile +++ b/Makefile @@ -377,6 +377,7 @@ NM = $(CROSS_COMPILE)nm STRIP = $(CROSS_COMPILE)strip OBJCOPY = $(CROSS_COMPILE)objcopy OBJDUMP = $(CROSS_COMPILE)objdump +OBJSIZE = $(CROSS_COMPILE)size LEX = flex YACC = bison AWK = awk @@ -433,7 +434,7 @@ GCC_PLUGINS_CFLAGS := CLANG_FLAGS := export ARCH SRCARCH CONFIG_SHELL HOSTCC KBUILD_HOSTCFLAGS CROSS_COMPILE AS LD CC -export CPP AR NM STRIP OBJCOPY OBJDUMP KBUILD_HOSTLDFLAGS KBUILD_HOSTLDLIBS +export CPP AR NM STRIP OBJCOPY OBJDUMP OBJSIZE KBUILD_HOSTLDFLAGS KBUILD_HOSTLDLIBS export MAKE LEX YACC AWK GENKSYMS INSTALLKERNEL PERL PYTHON PYTHON2 PYTHON3 UTS_MACHINE export HOSTCXX KBUILD_HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS