diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/m32r/Makefile | 2 | ||||
-rw-r--r-- | arch/m32r/kernel/vmlinux.lds.S | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/arch/m32r/Makefile b/arch/m32r/Makefile index f219c47d334f..cdf63b210c53 100644 --- a/arch/m32r/Makefile +++ b/arch/m32r/Makefile | |||
@@ -7,7 +7,7 @@ | |||
7 | 7 | ||
8 | LDFLAGS := | 8 | LDFLAGS := |
9 | OBJCOPYFLAGS := -O binary -R .note -R .comment -S | 9 | OBJCOPYFLAGS := -O binary -R .note -R .comment -S |
10 | LDFLAGS_vmlinux := -e startup_32 | 10 | LDFLAGS_vmlinux := |
11 | 11 | ||
12 | CFLAGS += -pipe -fno-schedule-insns | 12 | CFLAGS += -pipe -fno-schedule-insns |
13 | CFLAGS_KERNEL += -mmodel=medium | 13 | CFLAGS_KERNEL += -mmodel=medium |
diff --git a/arch/m32r/kernel/vmlinux.lds.S b/arch/m32r/kernel/vmlinux.lds.S index 358b9cee2c65..c497a2fc88ed 100644 --- a/arch/m32r/kernel/vmlinux.lds.S +++ b/arch/m32r/kernel/vmlinux.lds.S | |||
@@ -6,12 +6,15 @@ | |||
6 | #include <asm/page.h> | 6 | #include <asm/page.h> |
7 | 7 | ||
8 | OUTPUT_ARCH(m32r) | 8 | OUTPUT_ARCH(m32r) |
9 | ENTRY(startup_32) | ||
10 | #if defined(__LITTLE_ENDIAN__) | 9 | #if defined(__LITTLE_ENDIAN__) |
11 | jiffies = jiffies_64; | 10 | jiffies = jiffies_64; |
12 | #else | 11 | #else |
13 | jiffies = jiffies_64 + 4; | 12 | jiffies = jiffies_64 + 4; |
14 | #endif | 13 | #endif |
14 | |||
15 | kernel_entry = boot - 0x80000000; | ||
16 | ENTRY(kernel_entry) | ||
17 | |||
15 | SECTIONS | 18 | SECTIONS |
16 | { | 19 | { |
17 | . = CONFIG_MEMORY_START + __PAGE_OFFSET; | 20 | . = CONFIG_MEMORY_START + __PAGE_OFFSET; |