From 8b123f0fb5dc6cbd61fab6784b3ffab8228bfff5 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 9 Aug 2012 22:43:51 +0800 Subject: [PATCH] Kernel/x86_64 - Fixed bad ELF entrypoint causing qemu to crash --- KernelLand/Kernel/arch/x86_64/link.ld | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.20.1