diff options
Diffstat (limited to 'gnu-efi-disable-USE_MS_ABI.patch')
-rw-r--r-- | gnu-efi-disable-USE_MS_ABI.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gnu-efi-disable-USE_MS_ABI.patch b/gnu-efi-disable-USE_MS_ABI.patch new file mode 100644 index 000000000000..e363e6481fea --- /dev/null +++ b/gnu-efi-disable-USE_MS_ABI.patch @@ -0,0 +1,16 @@ +diff --git a/Make.defaults b/Make.defaults +index 38da180..aa1f4de 100644 +--- a/Make.defaults ++++ b/Make.defaults +@@ -54,9 +54,9 @@ GCCNEWENOUGH := $(shell ([ $(GCCVERSION) -gt "4" ] || ([ $(GCCVERSION) -eq "4" ] + + CPPFLAGS = -DCONFIG_$(ARCH) + ifeq ($(GCCNEWENOUGH),1) +-CPPFLAGS += -DGNU_EFI_USE_MS_ABI -maccumulate-outgoing-args --std=c11 ++CPPFLAGS += -maccumulate-outgoing-args --std=c11 + endif +-CFLAGS = $(ARCH3264) -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants ++CFLAGS = $(ARCH3264) -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-stack-protector -fno-merge-constants + ASFLAGS = $(ARCH3264) + LDFLAGS = -nostdlib + INSTALL = install |