X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/f1036cb8c8899f38e97e45d345a0c28585d9a000..7b0dccbab69e806a63c4504c3ddb82e45241985b:/lunaix-os/linker.ld diff --git a/lunaix-os/linker.ld b/lunaix-os/linker.ld deleted file mode 100644 index a81dad5..0000000 --- a/lunaix-os/linker.ld +++ /dev/null @@ -1,65 +0,0 @@ -ENTRY(start_) - -/* - FUTURE: Use disk reader - A bit of messy here. - We will pull our higher half kernel out of this shit - and load it separately once we have our disk reader. -*/ - -SECTIONS { - . = 0x100000; - - /* 这里是我们的高半核初始化代码段和数据段 */ - - .hhk_init_text BLOCK(4K) : { - * (.multiboot) - build/obj/arch/x86/*.o (.hhk_init) - build/obj/arch/x86/*.o (.text) - } - - .hhk_init_bss BLOCK(4K) : { - build/obj/arch/x86/*.o (.bss) - } - - .hhk_init_data BLOCK(4K) : { - build/obj/arch/x86/*.o (.data) - } - - .hhk_init_rodata BLOCK(4K) : { - build/obj/arch/x86/*.o (.rodata) - } - __init_hhk_end = ALIGN(4K); - - /* Relocation of our higher half kernel */ - . += 0xC0000000; - - /* 好了,我们的内核…… */ - .text BLOCK(4K) : AT ( ADDR(.text) - 0xC0000000 ) { - __kernel_start = .; - build/obj/kernel/*.o (.text) - build/obj/hal/*.o (.text) - } - - .bss BLOCK(4K) : AT ( ADDR(.bss) - 0xC0000000 ) { - build/obj/kernel/*.o (.bss) - build/obj/hal/*.o (.bss) - } - - .data BLOCK(4k) : AT ( ADDR(.data) - 0xC0000000 ) { - build/obj/kernel/*.o (.data) - build/obj/hal/*.o (.data) - } - - .rodata BLOCK(4K) : AT ( ADDR(.rodata) - 0xC0000000 ) { - build/obj/kernel/*.o (.rodata) - build/obj/hal/*.o (.rodata) - } - - .kpg BLOCK(4K) : AT ( ADDR(.kpg) - 0xC0000000 ) { - build/obj/arch/x86/*.o (.kpg) - } - - __kernel_end = ALIGN(4K); - __kernel_heap_start = ALIGN(4K); /* 内核结束的地方即堆开始的地方 */ -} \ No newline at end of file