Tweaked kernel CFLAGS
This commit is contained in:
parent
4f39a7564e
commit
b1d59e02eb
2 changed files with 2 additions and 4 deletions
|
@ -47,15 +47,12 @@ KERNEL_CFLAGS := $(foreach d, $(INCLUDE_DIRS), -I$d) \
|
|||
-fno-omit-frame-pointer \
|
||||
-fno-stack-protector \
|
||||
-fno-stack-check \
|
||||
-fpic \
|
||||
-fpie \
|
||||
-MMD \
|
||||
-MP
|
||||
|
||||
KERNEL_LDFLAGS := -Tarch/$(ARCH)/linker.ld \
|
||||
-nostdlib \
|
||||
-static \
|
||||
-no-pie
|
||||
-static
|
||||
|
||||
ifeq ($(BUILD_TYPE),debug)
|
||||
KERNEL_CFLAGS += -O0 -g3
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
KERNEL_CFLAGS += -m64 \
|
||||
-march=x86-64 \
|
||||
-mabi=sysv \
|
||||
-mcmodel=kernel \
|
||||
-mno-red-zone \
|
||||
-mno-80387 \
|
||||
-mno-mmx \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue