VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   35 Branches   59 Tags
author: Nick Desaulniers <ndesaulniers@google.com> 2021-03-11 17:09:41 -0800 committer: Kees Cook <keescook@chromium.org> 2021-05-24 15:24:34 -0700 commit: 24845dcb170e16b3100bd49743687648c71387ae parent: 1cb61759d40716643281b8e0f8c7afebc8699249
Commit Summary:
Makefile: LTO: have linker check -Wframe-larger-than
Diffstat:
1 file changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0ed7e061c8e9..90d1e1d7b927 100644
--- a/Makefile
+++ b/Makefile
@@ -928,6 +928,11 @@ CC_FLAGS_LTO	+= -fvisibility=hidden
 
 # Limit inlining across translation units to reduce binary size
 KBUILD_LDFLAGS += -mllvm -import-instr-limit=5
+
+# Check for frame size exceeding threshold during prolog/epilog insertion.
+ifneq ($(CONFIG_FRAME_WARN),0)
+KBUILD_LDFLAGS	+= -plugin-opt=-warn-stack-size=$(CONFIG_FRAME_WARN)
+endif
 endif
 
 ifdef CONFIG_LTO