Skip to content

Commit

Permalink
[PATCH] uml: clean up remapping code build magic
Browse files Browse the repository at this point in the history
kills unmap magic

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Mar 31, 2006
1 parent de2fe5e commit 7b99edc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 27 deletions.
2 changes: 1 addition & 1 deletion arch/um/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ CPPFLAGS_vmlinux.lds = -U$(SUBARCH) \
-DSTART=$(START) -DELF_ARCH=$(ELF_ARCH) \
-DELF_FORMAT="$(ELF_FORMAT)" $(CPP_MODE-y) \
-DKERNEL_STACK_SIZE=$(STACK_SIZE) \
-DUNMAP_PATH=arch/um/sys-$(SUBARCH)/unmap_fin.o
-DUNMAP_PATH=arch/um/sys-$(SUBARCH)/unmap.o

#The wrappers will select whether using "malloc" or the kernel allocator.
LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc
Expand Down
22 changes: 0 additions & 22 deletions arch/um/scripts/Makefile.unmap

This file was deleted.

5 changes: 3 additions & 2 deletions arch/um/sys-i386/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ USER_OBJS := bugs.o ptrace_user.o sigcontext.o fault.o stub_segv.o

include arch/um/scripts/Makefile.rules

$(obj)/stub_segv.o : _c_flags = $(call unprofile,$(CFLAGS))
extra-$(CONFIG_MODE_TT) += unmap.o

include arch/um/scripts/Makefile.unmap
$(obj)/stub_segv.o $(obj)/unmap.o: \
_c_flags = $(call unprofile,$(CFLAGS))
5 changes: 3 additions & 2 deletions arch/um/sys-x86_64/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ USER_OBJS := ptrace_user.o sigcontext.o stub_segv.o

include arch/um/scripts/Makefile.rules

$(obj)/stub_segv.o: _c_flags = $(call unprofile,$(CFLAGS))
extra-$(CONFIG_MODE_TT) += unmap.o

include arch/um/scripts/Makefile.unmap
$(obj)/stub_segv.o $(obj)/unmap.o: \
_c_flags = $(call unprofile,$(CFLAGS))

0 comments on commit 7b99edc

Please sign in to comment.