summaryrefslogtreecommitdiff
path: root/loader/Makefile
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2022-03-19 18:12:29 +0000
committerAda Christine <adachristine18@gmail.com>2022-03-19 18:12:29 +0000
commiteb022d780afe1e5e92547b6b3c2369dde1c4cc0b (patch)
tree5085c0161ce9f3319a7208edcc6e7e297e0c433a /loader/Makefile
parent66d66de4e0050ae00a55ae7003482f8f8af95d97 (diff)
_MSC_EXTENSIONS was causing empty definition of __attribute__ leading to calling convention issue in enter_shim
Diffstat (limited to 'loader/Makefile')
-rw-r--r--loader/Makefile3
1 files changed, 2 insertions, 1 deletions
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