|
@@ -11,7 +11,7 @@ cflags-$(CONFIG_X86) += -m$(BITS) -D__KERNEL__ $(LINUX_INCLUDE) -O2 \
|
|
|
-mno-mmx -mno-sse
|
|
|
|
|
|
cflags-$(CONFIG_ARM64) := $(subst -pg,,$(KBUILD_CFLAGS))
|
|
|
-cflags-$(CONFIG_ARM) := $(subst -pg,,$(KBUILD_CFLAGS)) \
|
|
|
+cflags-$(CONFIG_ARM) := $(subst -pg,,$(KBUILD_CFLAGS)) -g0 \
|
|
|
-fno-builtin -fpic -mno-single-pic-base
|
|
|
|
|
|
cflags-$(CONFIG_EFI_ARMSTUB) += -I$(srctree)/scripts/dtc/libfdt
|
|
@@ -79,5 +79,6 @@ quiet_cmd_stubcopy = STUBCPY $@
|
|
|
# decompressor. So move our .data to .data.efistub, which is preserved
|
|
|
# explicitly by the decompressor linker script.
|
|
|
#
|
|
|
-STUBCOPY_FLAGS-$(CONFIG_ARM) += --rename-section .data=.data.efistub
|
|
|
+STUBCOPY_FLAGS-$(CONFIG_ARM) += --rename-section .data=.data.efistub \
|
|
|
+ -R ___ksymtab+sort -R ___kcrctab+sort
|
|
|
STUBCOPY_RELOC-$(CONFIG_ARM) := R_ARM_ABS
|