author: Sami Tolvanen <samitolvanen@google.com> 2020-12-11 10:46:21 -0800
committer: Kees Cook <keescook@chromium.org> 2021-01-14 08:21:08 -0800
commit: 22d429e75f24d114d99223389d6ba7047e952e32
parent: 38e89184900385b0dad1ee55c35ae8abcfee6ece
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 173a7c9bd1fb..668909e7a460 100644
--- a/Makefile
+++ b/Makefile
@@ -901,6 +901,9 @@ else
CC_FLAGS_LTO += -flto
endif
CC_FLAGS_LTO += -fvisibility=hidden
+
+# Limit inlining across translation units to reduce binary size
+KBUILD_LDFLAGS += -mllvm -import-instr-limit=5
endif
ifdef CONFIG_LTO