From e3f4fb8f19307b62bf3e9aa8cef58631af6adecf Mon Sep 17 00:00:00 2001 From: Paolo 'Blaisorblade' Giarrusso Date: Thu, 14 Jul 2005 00:33:38 -0700 Subject: [PATCH] --- yaml --- r: 4803 b: refs/heads/master c: 1c30385ae479ec4774bdc1048726aeb15cde0d21 h: refs/heads/master i: 4801: e8a3bcca11f5994778beaf073b7c2223de3f67d1 4799: 26d5edac824e7f553bd499ebd2a04d799ab24cd2 v: v3 --- [refs] | 2 +- trunk/arch/um/Makefile | 9 +++++---- trunk/arch/um/kernel/uml.lds.S | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 5de75fe9a699..9d6aab39d441 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2e5e55923e315e8198f46f24f7ca37e1fd9aa102 +refs/heads/master: 1c30385ae479ec4774bdc1048726aeb15cde0d21 diff --git a/trunk/arch/um/Makefile b/trunk/arch/um/Makefile index 4a375bbac109..dfcc9eaafaa7 100644 --- a/trunk/arch/um/Makefile +++ b/trunk/arch/um/Makefile @@ -116,13 +116,14 @@ CONFIG_KERNEL_STACK_ORDER ?= 2 STACK_SIZE := $(shell echo $$[ 4096 * (1 << $(CONFIG_KERNEL_STACK_ORDER)) ] ) ifndef START - START = $$(($(TOP_ADDR) - $(SIZE))) + START = $(shell echo $$[ $(TOP_ADDR) - $(SIZE) ] ) endif -CPPFLAGS_vmlinux.lds = $(shell echo -U$(SUBARCH) \ +CPPFLAGS_vmlinux.lds = -U$(SUBARCH) \ -DSTART=$(START) -DELF_ARCH=$(ELF_ARCH) \ - -DELF_FORMAT=\"$(ELF_FORMAT)\" $(CPP_MODE-y) \ - -DKERNEL_STACK_SIZE=$(STACK_SIZE) -DSUBARCH=$(SUBARCH)) + -DELF_FORMAT="$(ELF_FORMAT)" $(CPP_MODE-y) \ + -DKERNEL_STACK_SIZE=$(STACK_SIZE) \ + -DUNMAP_PATH=arch/um/sys-$(SUBARCH)/unmap_fin.o #The wrappers will select whether using "malloc" or the kernel allocator. LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc diff --git a/trunk/arch/um/kernel/uml.lds.S b/trunk/arch/um/kernel/uml.lds.S index 163476a8cb1b..b03326d391c9 100644 --- a/trunk/arch/um/kernel/uml.lds.S +++ b/trunk/arch/um/kernel/uml.lds.S @@ -16,8 +16,8 @@ SECTIONS __binary_start = .; #ifdef MODE_TT - .remap_data : { arch/um/sys-SUBARCH/unmap_fin.o (.data .bss) } - .remap : { arch/um/sys-SUBARCH/unmap_fin.o (.text) } + .remap_data : { UNMAP_PATH (.data .bss) } + .remap : { UNMAP_PATH (.text) } . = ALIGN(4096); /* Init code and data */ #endif