Merge tag 'gfs2-v6.5-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git...
[platform/kernel/linux-starfive.git] / lib / Kconfig.debug
index a8a1b0a..319cfbe 100644 (file)
@@ -355,6 +355,11 @@ endchoice # "Compressed Debug information"
 config DEBUG_INFO_SPLIT
        bool "Produce split debuginfo in .dwo files"
        depends on $(cc-option,-gsplit-dwarf)
+       # RISC-V linker relaxation + -gsplit-dwarf has issues with LLVM and GCC
+       # prior to 12.x:
+       # https://github.com/llvm/llvm-project/issues/56642
+       # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99090
+       depends on !RISCV || GCC_VERSION >= 120000
        help
          Generate debug info into separate .dwo files. This significantly
          reduces the build directory size for builds with DEBUG_INFO,
@@ -502,7 +507,7 @@ config SECTION_MISMATCH_WARN_ONLY
 
 config DEBUG_FORCE_FUNCTION_ALIGN_64B
        bool "Force all function address 64B aligned"
-       depends on EXPERT && (X86_64 || ARM64 || PPC32 || PPC64 || ARC || S390)
+       depends on EXPERT && (X86_64 || ARM64 || PPC32 || PPC64 || ARC || RISCV || S390)
        select FUNCTION_ALIGNMENT_64B
        help
          There are cases that a commit from one domain changes the function