From 36733457a30f0be387c8efc1b5db5ff98fe90461 Mon Sep 17 00:00:00 2001 From: Dmitry Shmidt Date: Tue, 24 Oct 2017 12:32:28 -0700 Subject: [PATCH] Revert "BACKPORT: efi/libstub/arm64: Set -fpie when building the EFI stub" It breaks boot with UEFI bootloader This reverts commit 306315d1a3dfdd4eeb9babd0cf4fd854f0efe829. --- drivers/firmware/efi/libstub/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/efi/libstub/Makefile b/drivers/firmware/efi/libstub/Makefile index b12bc38dfa71..5e23e2d305e7 100644 --- a/drivers/firmware/efi/libstub/Makefile +++ b/drivers/firmware/efi/libstub/Makefile @@ -10,7 +10,7 @@ cflags-$(CONFIG_X86) += -m$(BITS) -D__KERNEL__ $(LINUX_INCLUDE) -O2 \ -fPIC -fno-strict-aliasing -mno-red-zone \ -mno-mmx -mno-sse -cflags-$(CONFIG_ARM64) := $(subst -pg,,$(KBUILD_CFLAGS)) -fpie +cflags-$(CONFIG_ARM64) := $(subst -pg,,$(KBUILD_CFLAGS)) cflags-$(CONFIG_ARM) := $(subst -pg,,$(KBUILD_CFLAGS)) -g0 \ -fno-builtin -fpic -mno-single-pic-base