11da177e4SLinus Torvalds# 21da177e4SLinus Torvalds# Copyright (C) 2002 - 2004 Jeff Dike (jdike@addtoit.com) 31da177e4SLinus Torvalds# Licensed under the GPL 41da177e4SLinus Torvalds# 51da177e4SLinus Torvalds 6abaf6977SGennady Sharapovobj-y := clone.o exec_kern.o mem.o mmu.o process_kern.o \ 7ea2ba7dcSGennady Sharapov syscall.o tlb.o uaccess.o 81da177e4SLinus Torvalds 9abaf6977SGennady SharapovUSER_OBJS := clone.o 101da177e4SLinus Torvalds 111da177e4SLinus Torvaldsinclude arch/um/scripts/Makefile.rules 129786a8f3SBodo Stroesser 139786a8f3SBodo Stroesser# clone.o is in the stub, so it can't be built with profiling 14275e6e1eSPaolo 'Blaisorblade' Giarrusso# GCC hardened also auto-enables -fpic, but we need %ebx so it can't work -> 15275e6e1eSPaolo 'Blaisorblade' Giarrusso# disable it 16275e6e1eSPaolo 'Blaisorblade' Giarrusso 17275e6e1eSPaolo 'Blaisorblade' GiarrussoCFLAGS_clone.o := $(CFLAGS_NO_HARDENING) 18275e6e1eSPaolo 'Blaisorblade' Giarrusso 19275e6e1eSPaolo 'Blaisorblade' Giarrusso# since we're setting c_flags we _must_ add $(CFLAGS_$(*F).o). 20275e6e1eSPaolo 'Blaisorblade' Giarrusso 21275e6e1eSPaolo 'Blaisorblade' Giarrusso$(obj)/clone.o : c_flags = -Wp,-MD,$(depfile) $(call unprofile,$(USER_CFLAGS)) $(CFLAGS_$(*F).o) 22