diff options
Diffstat (limited to 'arch/m32r/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/m32r/kernel/vmlinux.lds.S | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/m32r/kernel/vmlinux.lds.S b/arch/m32r/kernel/vmlinux.lds.S index 358b9cee2c65..439cc257cd1d 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; |
@@ -99,10 +102,14 @@ SECTIONS | |||
99 | from .altinstructions and .eh_frame */ | 102 | from .altinstructions and .eh_frame */ |
100 | .exit.text : { *(.exit.text) } | 103 | .exit.text : { *(.exit.text) } |
101 | .exit.data : { *(.exit.data) } | 104 | .exit.data : { *(.exit.data) } |
105 | |||
106 | #ifdef CONFIG_BLK_DEV_INITRD | ||
102 | . = ALIGN(4096); | 107 | . = ALIGN(4096); |
103 | __initramfs_start = .; | 108 | __initramfs_start = .; |
104 | .init.ramfs : { *(.init.ramfs) } | 109 | .init.ramfs : { *(.init.ramfs) } |
105 | __initramfs_end = .; | 110 | __initramfs_end = .; |
111 | #endif | ||
112 | |||
106 | . = ALIGN(32); | 113 | . = ALIGN(32); |
107 | __per_cpu_start = .; | 114 | __per_cpu_start = .; |
108 | .data.percpu : { *(.data.percpu) } | 115 | .data.percpu : { *(.data.percpu) } |