Revert "BACKPORT: efi/libstub/arm64: Set -fpie when building the EFI stub"

It breaks boot with UEFI bootloader

This reverts commit 306315d1a3.
This commit is contained in:
Dmitry Shmidt
2017-10-24 12:32:28 -07:00
parent 27155df9e4
commit 36733457a3

View File

@@ -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