Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3942419ybh; Tue, 6 Aug 2019 03:57:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqznZszFzv3VAk4u0JApL/7fI4g0g+D2H98slgkxvj7m8bB13nK/qrub9z/20WgoIlI5Jtj+ X-Received: by 2002:a17:902:e512:: with SMTP id ck18mr2462422plb.53.1565089069480; Tue, 06 Aug 2019 03:57:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565089069; cv=none; d=google.com; s=arc-20160816; b=c78Yf9b4Jfa2jRQk/i/2MkyTMPzDBA39fiQeFppbWAhGn9D+K3kEXQqsk7KZ7Cy/x+ sGaW4p8Mw9CvfhiYzz1ufxORgpH9fEw7DZHRHQ2cTEvaVIs5tjoL3fNcqsGsnMrjGQOB v0U1EQOqGFMFxfp5lwQp3LD30k35se1A6bddxDVsWpplUL6IxmJ/TNbp79XXLo1HMKAj nqwfqsooOKJGCnKxU200O0RN5SUsgc/yCRfs4iPK5K/3g1AQjRVl4jEsy4sqZOuYBz8b km8bX0WUmaTpGo1S9C910qlNBuv4cNcP6g8MDmeCkLKeEvNOpuiqjmyMiVrwyAlb7vC9 G2Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-disposition :mime-version:subject:cc:to:from:date; bh=iZavc9hinKy7tudygez5SWQ+f8iKlbCi/uuqUTZLFIA=; b=tMY1XPOplRQGf9oC+u9ZipXnzGSUVSicQUgG6tz7+fC1dmfZ1ZykWh30ebcxgROrX0 r16luCzwrdeAGqot6Njhy6jtPq35ezjgxJum3RIOqOghMA4gamUX8ExT7fZAqkL7PsxE IpUTk8hroLPhTB/wQkQJNy5L1BEaDjxiTCN1IlGKMwO4SNzqIzRenris7qWvgzXecdxL 3SJ2FOUqeOadoPuClsvQpv2TZWtgSOdgEUXNfJKaksyw0U2gSCJ8pQKavsZlrGr7oRhy hLBYle6Bl326Nxopqp9DxxCXwtc33UVFRRxrYvg0U3hj1RLKtLnOysxcUQU5eJvRkHe7 YzLQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e21si49346519pfl.68.2019.08.06.03.57.33; Tue, 06 Aug 2019 03:57:49 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732534AbfHFK4y (ORCPT + 99 others); Tue, 6 Aug 2019 06:56:54 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:64838 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730902AbfHFK4x (ORCPT ); Tue, 6 Aug 2019 06:56:53 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x76AumkI112467 for ; Tue, 6 Aug 2019 06:56:52 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2u75p2phfd-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 06 Aug 2019 06:56:52 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 6 Aug 2019 11:56:50 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 6 Aug 2019 11:56:48 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x76AulUJ58982484 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 6 Aug 2019 10:56:47 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 388214C04A; Tue, 6 Aug 2019 10:56:47 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0A8944C044; Tue, 6 Aug 2019 10:56:47 +0000 (GMT) Received: from localhost (unknown [9.152.212.148]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 6 Aug 2019 10:56:46 +0000 (GMT) Date: Tue, 6 Aug 2019 12:56:45 +0200 From: Vasily Gorbik To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] kbuild: add OBJSIZE variable for the size tool MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Patchwork-Bot: notify X-TM-AS-GCONF: 00 x-cbid: 19080610-4275-0000-0000-00000354F3E7 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19080610-4276-0000-0000-00003865EFE9 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-06_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908060113 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). Signed-off-by: Vasily Gorbik --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fa0fbe7851ea..ff4cff29fe46 100644 --- a/Makefile +++ b/Makefile @@ -419,6 +419,7 @@ NM = $(CROSS_COMPILE)nm STRIP = $(CROSS_COMPILE)strip OBJCOPY = $(CROSS_COMPILE)objcopy OBJDUMP = $(CROSS_COMPILE)objdump +OBJSIZE = $(CROSS_COMPILE)size PAHOLE = pahole LEX = flex YACC = bison @@ -474,9 +475,9 @@ KBUILD_LDFLAGS := GCC_PLUGINS_CFLAGS := export ARCH SRCARCH CONFIG_SHELL HOSTCC KBUILD_HOSTCFLAGS CROSS_COMPILE AS LD CC -export CPP AR NM STRIP OBJCOPY OBJDUMP PAHOLE KBUILD_HOSTLDFLAGS KBUILD_HOSTLDLIBS -export MAKE LEX YACC AWK INSTALLKERNEL PERL PYTHON PYTHON2 PYTHON3 UTS_MACHINE -export HOSTCXX KBUILD_HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS +export CPP AR NM STRIP OBJCOPY OBJDUMP OBJSIZE PAHOLE LEX YACC AWK INSTALLKERNEL +export PERL PYTHON PYTHON2 PYTHON3 CHECK CHECKFLAGS MAKE UTS_MACHINE HOSTCXX +export KBUILD_HOSTCXXFLAGS KBUILD_HOSTLDFLAGS KBUILD_HOSTLDLIBS LDFLAGS_MODULE export KBUILD_CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS KBUILD_LDFLAGS export KBUILD_CFLAGS CFLAGS_KERNEL CFLAGS_MODULE -- 2.21.0