summarylogtreecommitdiffstats
path: root/0010-kbuild-lto-remove-duplicate-dependencies-from-.mod-f.patch
diff options
context:
space:
mode:
Diffstat (limited to '0010-kbuild-lto-remove-duplicate-dependencies-from-.mod-f.patch')
-rw-r--r--0010-kbuild-lto-remove-duplicate-dependencies-from-.mod-f.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/0010-kbuild-lto-remove-duplicate-dependencies-from-.mod-f.patch b/0010-kbuild-lto-remove-duplicate-dependencies-from-.mod-f.patch
deleted file mode 100644
index 2ccca6751423..000000000000
--- a/0010-kbuild-lto-remove-duplicate-dependencies-from-.mod-f.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From b71272e6ef894b1fab04efa2ba98e32d00829eb0 Mon Sep 17 00:00:00 2001
-From: Sami Tolvanen <samitolvanen@google.com>
-Date: Wed, 5 Feb 2020 06:09:07 -0800
-Subject: [PATCH 10/24] kbuild: lto: remove duplicate dependencies from .mod
- files
-
-With LTO, llvm-nm prints out symbols for each archive member
-separately, which results in a lot of duplicate dependencies in the
-.mod file when CONFIG_TRIM_UNUSED_SYMS is enabled. When a module
-consists of several compilation units, the output can exceed the
-default xargs command size limit and split the dependency list to
-multiple lines, which results in used symbols getting trimmed.
-
-This change removes duplicate dependencies, which will reduce the
-probability of this happening and makes .mod files smaller and
-easier to read.
-
-Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
----
- scripts/Makefile.build | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/scripts/Makefile.build b/scripts/Makefile.build
-index 82977350f5a6..82b465ce3ca0 100644
---- a/scripts/Makefile.build
-+++ b/scripts/Makefile.build
-@@ -291,7 +291,7 @@ endef
-
- # List module undefined symbols (or empty line if not enabled)
- ifdef CONFIG_TRIM_UNUSED_KSYMS
--cmd_undef_syms = $(NM) $< | sed -n 's/^ *U //p' | xargs echo
-+cmd_undef_syms = $(NM) $< | sed -n 's/^ *U //p' | sort -u | xargs echo
- else
- cmd_undef_syms = echo
- endif
---
-2.28.0
-