lkml.org 
[lkml]   [2020]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH v6 06/25] x86, build: use objtool mcount
    From
    Select HAVE_OBJTOOL_MCOUNT if STACK_VALIDATION is selected to use
    objtool to generate __mcount_loc sections for dynamic ftrace with
    Clang and gcc <5 (later versions of gcc use -mrecord-mcount).

    Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
    Reviewed-by: Kees Cook <keescook@chromium.org>
    ---
    arch/x86/Kconfig | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
    index 5e832fd520b5..6d67646153bc 100644
    --- a/arch/x86/Kconfig
    +++ b/arch/x86/Kconfig
    @@ -163,6 +163,7 @@ config X86
    select HAVE_CMPXCHG_LOCAL
    select HAVE_CONTEXT_TRACKING if X86_64
    select HAVE_C_RECORDMCOUNT
    + select HAVE_OBJTOOL_MCOUNT if STACK_VALIDATION
    select HAVE_DEBUG_KMEMLEAK
    select HAVE_DMA_CONTIGUOUS
    select HAVE_DYNAMIC_FTRACE
    --
    2.28.0.1011.ga647a8990f-goog
    \
     
     \ /
      Last update: 2020-10-13 02:33    [W:4.711 / U:0.212 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site