diff options
Diffstat (limited to '0016-efi-libstub-disable-LTO.patch')
-rw-r--r-- | 0016-efi-libstub-disable-LTO.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/0016-efi-libstub-disable-LTO.patch b/0016-efi-libstub-disable-LTO.patch deleted file mode 100644 index e4e517cfcedd..000000000000 --- a/0016-efi-libstub-disable-LTO.patch +++ /dev/null @@ -1,30 +0,0 @@ -From b34b8b1ffab687116806638c2c8e2bbf0b70d52e Mon Sep 17 00:00:00 2001 -From: Sami Tolvanen <samitolvanen@google.com> -Date: Mon, 1 May 2017 11:08:05 -0700 -Subject: [PATCH 16/24] efi/libstub: disable LTO - -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.28.0 - |