Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp510862pxb; Thu, 25 Feb 2021 08:06:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1PdE8YaC5XKIT3CCAW9v7dc+pCjrmFL3QZf7UDeA0CC+CUwNsYmmAFgO5GUHHl9cruXM1 X-Received: by 2002:a17:906:1f42:: with SMTP id d2mr3305883ejk.297.1614269164661; Thu, 25 Feb 2021 08:06:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614269164; cv=none; d=google.com; s=arc-20160816; b=wmoHFkh468aRTqLIuvMDnsrN3LrgUNTnrJmvnNrDupka0qmoRnuvBX94U+DO2j0N1Z ZoCQ3xiM1S3kByzURBmt/ANMJN65IxldC5ohI9zCo4lz5BzKz+i0Ynw3KMwWm7znh+EK jzZgqD0uaQ9S7UnSiaNSCdhoW5WBwvhFiaDOwDWrqPn7WvJcgGHaNE0iMbIrFZWj8uUc CxSUz7zbE7KP3+X3eGhhW5WdSufviHkIwYFwYGYWqYA5xhfS8vVR/Ti090wG1Ej/Rtk+ MWuKRHj55cA50tPbyxDHbLa0pdvnitiWuhC93h3QgSlh+5JbOiWMulkH/06P02+vcdJG kmWQ== 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 :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=CyZEsWmAevBFT9uBiZTERrN13bxEczDUCNEzhGbHOzw=; b=EAbrvK8l7URX9eYTdiDJ0j2Qv8BZL4BO+SyYuZl9ZPJbc6Jj1YTVHTNhzGREnYYN3V 390D9bebOYTk6gjpvej3kj/8PA0qvhcLW9dokXXJujHYSpnTgeyb+V266SQaob9ca788 AZ949UfxM342WMKh0yPTVUs7SoV+WnlG3FBwDY8PrDHNgdxEH1XxJsD5xmpNxyYeHOYT lOouwu9cehK/BCKNzXjoZ/Ooq1CZ9CYQq4JHsMdRPNYl0+GEMqjUg9/cn1FSxJWBoW91 PNYfYqGOpoEo6gAVNgXe0YhXYGrc8Qo6sg6vRLF2eGZFbvO0fbHUuc93ZukM18nf8DIH nWJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="DlM/+Bpy"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m23si2215884ejr.429.2021.02.25.08.05.39; Thu, 25 Feb 2021 08:06:04 -0800 (PST) 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=@nifty.com header.s=dec2015msa header.b="DlM/+Bpy"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232465AbhBYQEe (ORCPT + 99 others); Thu, 25 Feb 2021 11:04:34 -0500 Received: from conuserg-12.nifty.com ([210.131.2.79]:52885 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232250AbhBYQEc (ORCPT ); Thu, 25 Feb 2021 11:04:32 -0500 Received: from oscar.flets-west.jp (softbank126026090165.bbtec.net [126.26.90.165]) (authenticated) by conuserg-12.nifty.com with ESMTP id 11PG2sqG028425; Fri, 26 Feb 2021 01:02:54 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com 11PG2sqG028425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1614268975; bh=CyZEsWmAevBFT9uBiZTERrN13bxEczDUCNEzhGbHOzw=; h=From:To:Cc:Subject:Date:From; b=DlM/+BpyVY2m+7PwxVhe+quQX6BE8hBWSc38TQmFzHGNM1Q02dfXiddtW0BXsvSp1 lqRydQAIG3D9xnQcSKkSKDhxhmLKZGPurVt+OMYaZzAIi7Th2zypKbyZAxGQvbj3JP Me5ipOaVfzwljva+bUhGnXX2aau6g4LyIDcUTGOyHMVTdSTt5M2057NrBNxHUJKGPV BRIA0wDDmI8Qt7uliXvzbrWZYmucnEa/fB6Dqo2y3srEyZc5qJ3Bc+oZxvLTMwjKsj ik3I2uh7/DN+gFuFhCYXrNVmiXOxnYaw9EfSmxTOvTt7wUISiCXFBPwqFcYVNvgI2l VYSOo08v7ITwQ== X-Nifty-SrcIP: [126.26.90.165] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Christoph Hellwig , Linus Torvalds , Jessica Yu , Nicolas Pitre , Sami Tolvanen , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Masahiro Yamada Subject: [PATCH 0/4] kbuild: build speed improvment of CONFIG_TRIM_UNUSED_KSYMS Date: Fri, 26 Feb 2021 01:02:42 +0900 Message-Id: <20210225160247.2959903-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now CONFIG_TRIM_UNUSED_KSYMS is revived, but Linus is still unhappy about the build speed. I re-implemented this feature, and the build time cost is now almost unnoticeable level. I hope this makes Linus happy. Masahiro Yamada (4): kbuild: fix UNUSED_KSYMS_WHITELIST for Clang LTO export.h: make __ksymtab_strings per-symbol section kbuild: separate out vmlinux.lds generation kbuild: re-implement CONFIG_TRIM_UNUSED_KSYMS to make it work in one-pass Makefile | 34 ++++++------ arch/alpha/kernel/Makefile | 3 +- arch/arc/kernel/Makefile | 3 +- arch/arm/kernel/Makefile | 3 +- arch/arm64/kernel/Makefile | 3 +- arch/csky/kernel/Makefile | 3 +- arch/h8300/kernel/Makefile | 2 +- arch/hexagon/kernel/Makefile | 3 +- arch/ia64/kernel/Makefile | 3 +- arch/m68k/kernel/Makefile | 2 +- arch/microblaze/kernel/Makefile | 3 +- arch/mips/kernel/Makefile | 3 +- arch/nds32/kernel/Makefile | 3 +- arch/nios2/kernel/Makefile | 2 +- arch/openrisc/kernel/Makefile | 3 +- arch/parisc/kernel/Makefile | 3 +- arch/powerpc/kernel/Makefile | 2 +- arch/riscv/kernel/Makefile | 2 +- arch/s390/kernel/Makefile | 3 +- arch/sh/kernel/Makefile | 3 +- arch/sparc/kernel/Makefile | 2 +- arch/um/kernel/Makefile | 2 +- arch/x86/kernel/Makefile | 2 +- arch/xtensa/kernel/Makefile | 3 +- include/asm-generic/export.h | 25 +-------- include/asm-generic/vmlinux.lds.h | 29 +++++++++-- include/linux/export.h | 56 +++++--------------- init/Kconfig | 4 +- scripts/Makefile.build | 7 +-- scripts/adjust_autoksyms.sh | 76 --------------------------- scripts/gen-keep-ksyms.sh | 86 +++++++++++++++++++++++++++++++ scripts/gen_autoksyms.sh | 55 -------------------- scripts/gen_ksymdeps.sh | 25 --------- scripts/lto-used-symbollist.txt | 5 -- scripts/module.lds.S | 38 ++++++++++---- 35 files changed, 210 insertions(+), 291 deletions(-) delete mode 100755 scripts/adjust_autoksyms.sh create mode 100755 scripts/gen-keep-ksyms.sh delete mode 100755 scripts/gen_autoksyms.sh delete mode 100755 scripts/gen_ksymdeps.sh delete mode 100644 scripts/lto-used-symbollist.txt -- 2.27.0