forked from Bananymous/banan-os
Kernel: add gcc option to make sure we have (r/e)bp saved on stack
This commit is contained in:
parent
aa0757e135
commit
05b48fa71c
|
@ -13,7 +13,7 @@ EXEC_PREFIX?=$(PREFIX)
|
||||||
BOOTDIR?=$(EXEC_PREFIX)/boot
|
BOOTDIR?=$(EXEC_PREFIX)/boot
|
||||||
INCLUDEDIR?=$(PREFIX)/include
|
INCLUDEDIR?=$(PREFIX)/include
|
||||||
|
|
||||||
CFLAGS:=$(CFLAGS) -D__is_kernel -Iinclude -fstack-protector -ffreestanding -Wall -Wextra -Werror=return-type
|
CFLAGS:=$(CFLAGS) -D__is_kernel -Iinclude -fstack-protector -ffreestanding -Wall -Wextra -Werror=return-type -fno-omit-frame-pointer
|
||||||
CPPFLAGS:=$(CPPFLAGS) -fno-rtti -fno-exceptions
|
CPPFLAGS:=$(CPPFLAGS) -fno-rtti -fno-exceptions
|
||||||
LDFLAGS:=$(LDFLAGS)
|
LDFLAGS:=$(LDFLAGS)
|
||||||
LIBS:=$(LIBS) -nostdlib -lk -lbank -lgcc
|
LIBS:=$(LIBS) -nostdlib -lk -lbank -lgcc
|
||||||
|
|
Loading…
Reference in New Issue