[PATCH 22/30] microblaze_mmu_v1: Update linker script for MMU

monstr
2009-04-27T09:48:37Z

From: Michal Simek <monstr@monstr.eu>

Signed-off-by: Michal Simek <monstr@monstr.eu>
---
arch/microblaze/kernel/vmlinux.lds.S | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/arch/microblaze/kernel/vmlinux.lds.S b/arch/microblaze/kernel/vmlinux.lds.S
index 840385e..50b4bcf 100644
--- a/arch/microblaze/kernel/vmlinux.lds.S
+++ b/arch/microblaze/kernel/vmlinux.lds.S
@@ -17,8 +17,11 @@ ENTRY(_start)
jiffies = jiffies_64 + 4;

SECTIONS {
+#ifdef CONFIG_MMU
+ . = CONFIG_KERNEL_START;
+#else
. = CONFIG_KERNEL_BASE_ADDR;
-
+#endif
.text : {
_text = . ;
_stext = . ;
--
1.5.5.1