lkml.org 
[lkml]   [2021]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH 10/15] x86/purgatory: Disable CFI
    From
    Disable CONFIG_CFI_CLANG for the stand-alone purgatory.ro.

    Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
    ---
    arch/x86/purgatory/Makefile | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile
    index 95ea17a9d20c..ed46ad780130 100644
    --- a/arch/x86/purgatory/Makefile
    +++ b/arch/x86/purgatory/Makefile
    @@ -31,7 +31,7 @@ KCOV_INSTRUMENT := n
    # These are adjustments to the compiler flags used for objects that
    # make up the standalone purgatory.ro

    -PURGATORY_CFLAGS_REMOVE := -mcmodel=kernel
    +PURGATORY_CFLAGS_REMOVE := -mcmodel=kernel $(CC_FLAGS_CFI)
    PURGATORY_CFLAGS := -mcmodel=large -ffreestanding -fno-zero-initialized-in-bss -g0
    PURGATORY_CFLAGS += $(DISABLE_STACKLEAK_PLUGIN) -DDISABLE_BRANCH_PROFILING
    PURGATORY_CFLAGS += -fno-stack-protector
    --
    2.31.1.368.gbe11c130af-goog
    \
     
     \ /
      Last update: 2021-04-16 22:40    [W:3.266 / U:0.156 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site