Patch "Makefile.debug: set -g unconditional on CONFIG_DEBUG_INFO_SPLIT" has been added to the 5.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Makefile.debug: set -g unconditional on CONFIG_DEBUG_INFO_SPLIT

to the 5.19-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     makefile.debug-set-g-unconditional-on-config_debug_i.patch
and it can be found in the queue-5.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 9dc8a185dad92c12c1ff040b0ff41b2d5ac2adf0
Author: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>
Date:   Mon Sep 19 10:30:30 2022 -0700

    Makefile.debug: set -g unconditional on CONFIG_DEBUG_INFO_SPLIT
    
    [ Upstream commit 61f2b7c7497ba96cdde5bbaeb9e07f4c48f41f97 ]
    
    Dmitrii, Fangrui, and Mashahiro note:
    
      Before GCC 11 and Clang 12 -gsplit-dwarf implicitly uses -g2.
    
    Fix CONFIG_DEBUG_INFO_SPLIT for gcc-11+ & clang-12+ which now need -g
    specified in order for -gsplit-dwarf to work at all.
    
    -gsplit-dwarf has been mutually exclusive with -g since support for
    CONFIG_DEBUG_INFO_SPLIT was introduced in
    commit 866ced950bcd ("kbuild: Support split debug info v4")
    I don't think it ever needed to be.
    
    Link: https://lore.kernel.org/lkml/20220815013317.26121-1-dmitrii.bundin.a@xxxxxxxxx/
    Link: https://lore.kernel.org/lkml/CAK7LNARPAmsJD5XKAw7m_X2g7Fi-CAAsWDQiP7+ANBjkg7R7ng@xxxxxxxxxxxxxx/
    Link: https://reviews.llvm.org/D80391
    Cc: Andi Kleen <ak@xxxxxxxxxxxxxxx>
    Reported-by: Dmitrii Bundin <dmitrii.bundin.a@xxxxxxxxx>
    Reported-by: Fangrui Song <maskray@xxxxxxxxxx>
    Reported-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
    Suggested-by: Dmitrii Bundin <dmitrii.bundin.a@xxxxxxxxx>
    Reviewed-by: Nathan Chancellor <nathan@xxxxxxxxxx>
    Signed-off-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>
    Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
    Stable-dep-of: 32ef9e5054ec ("Makefile.debug: re-enable debug info for .S files")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/scripts/Makefile.debug b/scripts/Makefile.debug
index 9f39b0130551..26d6a9d97a20 100644
--- a/scripts/Makefile.debug
+++ b/scripts/Makefile.debug
@@ -1,9 +1,7 @@
-DEBUG_CFLAGS	:=
+DEBUG_CFLAGS	:= -g
 
 ifdef CONFIG_DEBUG_INFO_SPLIT
 DEBUG_CFLAGS	+= -gsplit-dwarf
-else
-DEBUG_CFLAGS	+= -g
 endif
 
 ifndef CONFIG_AS_IS_LLVM



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux