kbuild: introduce new option to enhance section mismatch analysis
[deliverable/linux.git] / Makefile
index 6847464402aaa238ef3e7bf5d22908f8d9cd7bf8..8533f258c0e497d45641732ad8b849de17841297 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -520,6 +520,11 @@ KBUILD_CFLAGS      += -g
 KBUILD_AFLAGS  += -gdwarf-2
 endif
 
+# We trigger additional mismatches with less inlining
+ifdef CONFIG_DEBUG_SECTION_MISMATCH
+KBUILD_CFLAGS += $(call cc-option, -fno-inline-functions-called-once)
+endif
+
 # Force gcc to behave correct even for buggy distributions
 KBUILD_CFLAGS         += $(call cc-option, -fno-stack-protector)
 
This page took 0.04288 seconds and 5 git commands to generate.