summaryrefslogtreecommitdiff
path: root/kc/defaults.mk
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2022-03-18 12:24:48 +0000
committerAda Christine <adachristine18@gmail.com>2022-03-18 12:24:48 +0000
commit51cfcb98bde7e78b4817a9060885b25b6c3d354c (patch)
treea7ba8214cdfbc170dceded6e8deb883efd100ae4 /kc/defaults.mk
parent5826f2045cca28b7c9ba8a5b65b4b4928eb6b461 (diff)
now using clang, native PE UEFI loader image. made an ugly hack to get
into the shim. it's probably ok.
Diffstat (limited to 'kc/defaults.mk')
-rw-r--r--kc/defaults.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/kc/defaults.mk b/kc/defaults.mk
index 0b6c4ba..ec6dfd3 100644
--- a/kc/defaults.mk
+++ b/kc/defaults.mk
@@ -1,7 +1,9 @@
-LIBDIRS += -L$(dir $(shell $(CC) -print-libgcc-file-name))
LDSCRIPT := ../kc.ld
+
+CFLAGS += -fPIC -fvisibility=hidden -mgeneral-regs-only
+
LDFLAGS += -z max-page-size=4096 --export-dynamic -pic \
- -z separate-code -pie -Bsymbolic -shared
-LOADLIBES := -lgcc
+ -z separate-code -pie -Bsymbolic -shared \
+ -z execstack -g