2 # Prohibit the use of FP registers in the kernel. The user FP state is
3 # only saved and restored under strictly managed conditions and mainline
4 # kernel code cannot safely use the FP system.
7 CFLAGS+= -mpreferred-stack-boundary=4
9 # Retpoline spectre protection
12 CFLAGS+= -mindirect-branch=thunk-inline
17 CFLAGS+= -fno-stack-protector -fno-strict-aliasing
18 CFLAGS+= -fno-strict-overflow
19 CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
20 CFLAGS+= -D_KERNEL_VIRTUAL
21 CFLAGS+= -fno-omit-frame-pointer
23 # Remove the dynamic library hack for now
25 SYSTEM_OBJS:= ${SYSTEM_OBJS:Nhack.So}