summaryrefslogtreecommitdiff
path: root/extra/gnu-efi-libs/disable-ms_abi-flag.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gnu-efi-libs/disable-ms_abi-flag.patch')
-rw-r--r--extra/gnu-efi-libs/disable-ms_abi-flag.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/extra/gnu-efi-libs/disable-ms_abi-flag.patch b/extra/gnu-efi-libs/disable-ms_abi-flag.patch
new file mode 100644
index 000000000..2fb61a1d7
--- /dev/null
+++ b/extra/gnu-efi-libs/disable-ms_abi-flag.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
++CPPFLAGS += -maccumulate-outgoing-args
+ 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