From 8b84a6e4cebd6bd3b6b0b7a08f32b3dbf7ab1288 Mon Sep 17 00:00:00 2001 From: Hirokazu Takata Date: Sat, 10 Feb 2007 01:43:39 -0800 Subject: [PATCH] --- yaml --- r: 47430 b: refs/heads/master c: 3d60f849341ac00e3dc47a3af94aaf9ba46d00fb h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/m32r/Makefile | 2 +- trunk/arch/m32r/kernel/vmlinux.lds.S | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 6dc0c17e37a2..cd59404a6ec3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4aa3b3ccfc6abda052a1bbd9cf018d51c1689836 +refs/heads/master: 3d60f849341ac00e3dc47a3af94aaf9ba46d00fb diff --git a/trunk/arch/m32r/Makefile b/trunk/arch/m32r/Makefile index f219c47d334f..cdf63b210c53 100644 --- a/trunk/arch/m32r/Makefile +++ b/trunk/arch/m32r/Makefile @@ -7,7 +7,7 @@ LDFLAGS := OBJCOPYFLAGS := -O binary -R .note -R .comment -S -LDFLAGS_vmlinux := -e startup_32 +LDFLAGS_vmlinux := CFLAGS += -pipe -fno-schedule-insns CFLAGS_KERNEL += -mmodel=medium diff --git a/trunk/arch/m32r/kernel/vmlinux.lds.S b/trunk/arch/m32r/kernel/vmlinux.lds.S index 358b9cee2c65..c497a2fc88ed 100644 --- a/trunk/arch/m32r/kernel/vmlinux.lds.S +++ b/trunk/arch/m32r/kernel/vmlinux.lds.S @@ -6,12 +6,15 @@ #include OUTPUT_ARCH(m32r) -ENTRY(startup_32) #if defined(__LITTLE_ENDIAN__) jiffies = jiffies_64; #else jiffies = jiffies_64 + 4; #endif + +kernel_entry = boot - 0x80000000; +ENTRY(kernel_entry) + SECTIONS { . = CONFIG_MEMORY_START + __PAGE_OFFSET;