aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/skas/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/kernel/skas/Makefile')
-rw-r--r--arch/um/kernel/skas/Makefile9
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/um/kernel/skas/Makefile b/arch/um/kernel/skas/Makefile
index ad842964707a..ea3a8e409a6e 100644
--- a/arch/um/kernel/skas/Makefile
+++ b/arch/um/kernel/skas/Makefile
@@ -6,16 +6,11 @@
6obj-y := clone.o exec_kern.o mem.o mmu.o process_kern.o \ 6obj-y := clone.o exec_kern.o mem.o mmu.o process_kern.o \
7 syscall.o tlb.o uaccess.o 7 syscall.o tlb.o uaccess.o
8 8
9USER_OBJS := clone.o
10
11include arch/um/scripts/Makefile.rules
12
13# clone.o is in the stub, so it can't be built with profiling 9# clone.o is in the stub, so it can't be built with profiling
14# GCC hardened also auto-enables -fpic, but we need %ebx so it can't work -> 10# GCC hardened also auto-enables -fpic, but we need %ebx so it can't work ->
15# disable it 11# disable it
16 12
17CFLAGS_clone.o := $(CFLAGS_NO_HARDENING) 13CFLAGS_clone.o := $(CFLAGS_NO_HARDENING)
14UNPROFILE_OBJS := clone.o
18 15
19# since we're setting c_flags we _must_ add $(CFLAGS_$(*F).o). 16include arch/um/scripts/Makefile.rules
20
21$(obj)/clone.o : c_flags = -Wp,-MD,$(depfile) $(call unprofile,$(USER_CFLAGS)) $(CFLAGS_$(*F).o)