From eb022d780afe1e5e92547b6b3c2369dde1c4cc0b Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Sat, 19 Mar 2022 18:12:29 +0000 Subject: _MSC_EXTENSIONS was causing empty definition of __attribute__ leading to calling convention issue in enter_shim --- loader/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'loader/Makefile') diff --git a/loader/Makefile b/loader/Makefile index d273258..add25e7 100644 --- a/loader/Makefile +++ b/loader/Makefile @@ -8,7 +8,8 @@ IMAGE := loader.efi CPPFLAGS += -I../api -I../lib CFLAGS += --target=$(GNUEFIARCH)-unknown-windows -fshort-wchar -mno-avx \ - -mno-sse -mno-mmx -funsigned-char -Wno-pointer-sign -ggdb + -mno-sse -mno-mmx -funsigned-char -Wno-pointer-sign -ggdb \ + -fno-ms-extensions LDFLAGS := --target=$(GNUEFIARCH)-unknown-windows -nostdlib -ggdb \ -Wl,-entry:efi_main,-subsystem:efi_application -fuse-ld=lld-link -- cgit v1.3.1-1-g115d