From: John Hodge Date: Thu, 9 Aug 2012 14:43:51 +0000 (+0800) Subject: Kernel/x86_64 - Fixed bad ELF entrypoint causing qemu to crash X-Git-Tag: rel0.15~706^2~51 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=8b123f0fb5dc6cbd61fab6784b3ffab8228bfff5;p=tpg%2Facess2.git Kernel/x86_64 - Fixed bad ELF entrypoint causing qemu to crash --- diff --git a/KernelLand/Kernel/arch/x86_64/link.ld b/KernelLand/Kernel/arch/x86_64/link.ld index 49fe7ae3..8defcc50 100644 --- a/KernelLand/Kernel/arch/x86_64/link.ld +++ b/KernelLand/Kernel/arch/x86_64/link.ld @@ -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;