1 # SPDX-License-Identifier: GPL-2.0
3 # Makefile for the x86 low level entry code
10 CFLAGS_REMOVE_common.o
= $(CC_FLAGS_FTRACE
)
11 CFLAGS_REMOVE_syscall_64.o
= $(CC_FLAGS_FTRACE
)
12 CFLAGS_REMOVE_syscall_32.o
= $(CC_FLAGS_FTRACE
)
13 CFLAGS_REMOVE_syscall_x32.o
= $(CC_FLAGS_FTRACE
)
15 CFLAGS_common.o
+= -fno-stack-protector
16 CFLAGS_syscall_64.o
+= -fno-stack-protector
17 CFLAGS_syscall_32.o
+= -fno-stack-protector
18 CFLAGS_syscall_x32.o
+= -fno-stack-protector
20 CFLAGS_syscall_64.o
+= $(call cc-option
,-Wno-override-init
,)
21 CFLAGS_syscall_32.o
+= $(call cc-option
,-Wno-override-init
,)
22 CFLAGS_syscall_x32.o
+= $(call cc-option
,-Wno-override-init
,)
24 obj-y
:= entry_
$(BITS
).o thunk_
$(BITS
).o syscall_
$(BITS
).o
30 obj-
$(CONFIG_IA32_EMULATION
) += entry_64_compat.o syscall_32.o
31 obj-
$(CONFIG_X86_X32_ABI
) += syscall_x32.o