lkml.org 
[lkml]   [2020]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH 14/22] efi/libstub: disable LTO
    From
    With CONFIG_LTO_CLANG, we produce LLVM bitcode instead of ELF object
    files. Since LTO is not really needed here and the Makefile assumes we
    produce an object file, disable LTO for libstub.

    Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
    ---
    drivers/firmware/efi/libstub/Makefile | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/drivers/firmware/efi/libstub/Makefile b/drivers/firmware/efi/libstub/Makefile
    index 75daaf20374e..95e12002cc7c 100644
    --- a/drivers/firmware/efi/libstub/Makefile
    +++ b/drivers/firmware/efi/libstub/Makefile
    @@ -35,6 +35,8 @@ KBUILD_CFLAGS := $(cflags-y) -Os -DDISABLE_BRANCH_PROFILING \

    # remove SCS flags from all objects in this directory
    KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_SCS), $(KBUILD_CFLAGS))
    +# disable LTO
    +KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_LTO), $(KBUILD_CFLAGS))

    GCOV_PROFILE := n
    # Sanitizer runtimes are unavailable and cannot be linked here.
    --
    2.27.0.212.ge8ba1cc988-goog
    \
     
     \ /
      Last update: 2020-06-24 22:34    [W:2.159 / U:0.988 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site