Kernel/x86_64 - Fixed bad ELF entrypoint causing qemu to crash
authorJohn Hodge <[email protected]>
Thu, 9 Aug 2012 14:43:51 +0000 (22:43 +0800)
committerJohn Hodge <[email protected]>
Thu, 9 Aug 2012 14:43:51 +0000 (22:43 +0800)
KernelLand/Kernel/arch/x86_64/link.ld

index 49fe7ae..8defcc5 100644 (file)
@@ -12,7 +12,8 @@ OUTPUT_FORMAT(elf32-i386)
 OUTPUT_ARCH(i386:x86-64)
 */
 OUTPUT_FORMAT(elf64-x86-64)
-ENTRY(start)
+lstart = start - _kernel_base;
+ENTRY(lstart)
 
 SECTIONS {
        . = 0x100000;

UCC git Repository :: git.ucc.asn.au