blob: ae9d48d75ef698cb776c841011e0f6492faaf4f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
From 9df586c4b4b112f55f1984697bfd6de663774118 Mon Sep 17 00:00:00 2001
From: Jason Wessel <jason.wessel@windriver.com>
Date: Wed, 3 Feb 2010 13:51:19 -0500
Subject: [PATCH 2/3] powerpc: special load offset for qemu
Patch the load offset to work correctly with qemu_boot_loader.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
---
arch/powerpc/kernel/vmlinux.lds.S | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S
index dcd01c8..4397f44 100644
--- a/arch/powerpc/kernel/vmlinux.lds.S
+++ b/arch/powerpc/kernel/vmlinux.lds.S
@@ -8,6 +8,11 @@
#include <asm/cache.h>
#include <asm/thread_info.h>
+#ifdef CONFIG_PPC_QEMU
+#undef LOAD_OFFSET
+#define LOAD_OFFSET 0
+#endif /* CONFIG_PPC_QEMU */
+
ENTRY(_stext)
PHDRS {
--
1.6.5.2
|