Extra compiler flags for AMD64
All checks were successful
Build documentation / build-and-deploy (push) Successful in 49s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 49s
This commit is contained in:
@@ -4,7 +4,8 @@ cflags += --target=x86_64-pc-none-elf \
|
|||||||
-mno-avx \
|
-mno-avx \
|
||||||
-mno-mmx \
|
-mno-mmx \
|
||||||
-mno-80387 \
|
-mno-80387 \
|
||||||
-mno-red-zone
|
-mno-red-zone \
|
||||||
|
-mcmodel=large
|
||||||
|
|
||||||
ldflags += --target=x86_64-pc-none-elf \
|
ldflags += --target=x86_64-pc-none-elf \
|
||||||
-Wl,-zmax-page-size=0x1000
|
-Wl,-zmax-page-size=0x1000
|
||||||
|
|||||||
@@ -5,7 +5,9 @@ cflags += -nostdinc \
|
|||||||
-std=c11 \
|
-std=c11 \
|
||||||
-pedantic \
|
-pedantic \
|
||||||
-Wall \
|
-Wall \
|
||||||
-Wextra
|
-Wextra \
|
||||||
|
-ffunction-sections \
|
||||||
|
-fdata-sections
|
||||||
|
|
||||||
cflags += -isystem ../include
|
cflags += -isystem ../include
|
||||||
|
|
||||||
@@ -13,4 +15,7 @@ ldflags += -ffreestanding \
|
|||||||
-nostdlib \
|
-nostdlib \
|
||||||
-fno-builtin \
|
-fno-builtin \
|
||||||
-fuse-ld=lld \
|
-fuse-ld=lld \
|
||||||
-static
|
-static \
|
||||||
|
-Wl,--gc-sections \
|
||||||
|
-Wl,--strip-all \
|
||||||
|
-flto
|
||||||
|
|||||||
Reference in New Issue
Block a user