diff options
Diffstat (limited to 'arch/um/kernel')
-rw-r--r-- | arch/um/kernel/skas/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/um/kernel/skas/Makefile b/arch/um/kernel/skas/Makefile index 57181a920d48..ad842964707a 100644 --- a/arch/um/kernel/skas/Makefile +++ b/arch/um/kernel/skas/Makefile | |||
@@ -11,4 +11,11 @@ USER_OBJS := clone.o | |||
11 | include arch/um/scripts/Makefile.rules | 11 | include arch/um/scripts/Makefile.rules |
12 | 12 | ||
13 | # clone.o is in the stub, so it can't be built with profiling | 13 | # clone.o is in the stub, so it can't be built with profiling |
14 | $(obj)/clone.o : c_flags = -Wp,-MD,$(depfile) $(call unprofile,$(USER_CFLAGS)) | 14 | # GCC hardened also auto-enables -fpic, but we need %ebx so it can't work -> |
15 | # disable it | ||
16 | |||
17 | CFLAGS_clone.o := $(CFLAGS_NO_HARDENING) | ||
18 | |||
19 | # since we're setting c_flags we _must_ add $(CFLAGS_$(*F).o). | ||
20 | |||
21 | $(obj)/clone.o : c_flags = -Wp,-MD,$(depfile) $(call unprofile,$(USER_CFLAGS)) $(CFLAGS_$(*F).o) | ||