Xen used the i386 version this file, which was modified to support kexec.
authorMarc Fiuczynski <mef@cs.princeton.edu>
Mon, 22 Aug 2005 05:05:44 +0000 (05:05 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Mon, 22 Aug 2005 05:05:44 +0000 (05:05 +0000)
Unfortunately, the kexec patch prevented a xenU from starting correctly.
Removed kexec patch and created separate vmlinux.lds.S file for xen.

arch/xen/kernel/vmlinux.lds.S

index ef40882..e93cddf 100644 (file)
@@ -2,7 +2,6 @@
  * Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz>;
  */
 
-#define LOAD_OFFSET __PAGE_OFFSET
 
 #include <asm-generic/vmlinux.lds.h>
 #include <asm/thread_info.h>
@@ -12,6 +11,7 @@
 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
 OUTPUT_ARCH(i386)
 #ifdef ALK_KEXEC       
+#define LOAD_OFFSET __PAGE_OFFSET
 #define KERN_PHYS_OFFSET (CONFIG_KERN_PHYS_OFFSET * 0x100000)
 ENTRY(phys_startup_32)
 jiffies = jiffies_64;