diff options
| author | Ada Christine <adachristine18@gmail.com> | 2022-03-18 12:24:48 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2022-03-18 12:24:48 +0000 |
| commit | 51cfcb98bde7e78b4817a9060885b25b6c3d354c (patch) | |
| tree | a7ba8214cdfbc170dceded6e8deb883efd100ae4 /kc/defaults.mk | |
| parent | 5826f2045cca28b7c9ba8a5b65b4b4928eb6b461 (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.mk | 8 |
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 |
