X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/48b4a227035048fdebcd32532deb7a857c6199ac..87067c7f16425837971f5c1b5fd0fc5338757377:/lunaix-os/link/linker.ld diff --git a/lunaix-os/link/linker.ld b/lunaix-os/link/linker.ld index 2589aeb..d2d39f0 100644 --- a/lunaix-os/link/linker.ld +++ b/lunaix-os/link/linker.ld @@ -14,20 +14,20 @@ SECTIONS { .hhk_init_text BLOCK(4K) : { * (.multiboot) - build/obj/arch/x86/*.o (.hhk_init) - build/obj/arch/x86/*.o (.text) + arch/*.o (.hhk_init) + arch/*.o (.text) } .hhk_init_bss BLOCK(4K) : { - build/obj/arch/x86/*.o (.bss) + arch/*.o (.bss) } .hhk_init_data BLOCK(4K) : { - build/obj/arch/x86/*.o (.data) + arch/*.o (.data) } .hhk_init_rodata BLOCK(4K) : { - build/obj/arch/x86/*.o (.rodata) + arch/*.o (.rodata) } __init_hhk_end = ALIGN(4K); @@ -37,33 +37,40 @@ SECTIONS { /* 好了,我们的内核…… */ .text BLOCK(4K) : AT ( ADDR(.text) - 0xC0000000 ) { __kernel_start = .; - build/obj/kernel/*.o (.text) - build/obj/hal/*.o (.text) - } + PROVIDE(__ktext_start = .); + + kernel/*.o (.text) + hal/*.o (.text) + debug/*.o (.text) + libs/*.o (.text) - .bss BLOCK(4K) : AT ( ADDR(.bss) - 0xC0000000 ) { - build/obj/kernel/*.o (.bss) - build/obj/hal/*.o (.bss) + PROVIDE(__ktext_end = .); } - .data BLOCK(4k) : AT ( ADDR(.data) - 0xC0000000 ) { - build/obj/kernel/*.o (.data) - build/obj/hal/*.o (.data) + .data BLOCK(4K) : AT ( ADDR(.data) - 0xC0000000 ) { + kernel/*.o (.data) + hal/*.o (.data) + debug/*.o (.data) + libs/*.o (.data) } .rodata BLOCK(4K) : AT ( ADDR(.rodata) - 0xC0000000 ) { - build/obj/kernel/*.o (.rodata) - build/obj/hal/*.o (.rodata) + kernel/*.o (.rodata) + hal/*.o (.rodata) + debug/*.o (.rodata) + libs/*.o (.rodata) } .kpg BLOCK(4K) : AT ( ADDR(.kpg) - 0xC0000000 ) { - build/obj/arch/x86/*.o (.kpg) + arch/*.o (.kpg) + } + + .bss BLOCK(4K) : AT ( ADDR(.bss) - 0xC0000000 ) { + kernel/*.o (.bss) + hal/*.o (.bss) + debug/*.o (.bss) + libs/*.o (.bss) } __kernel_end = ALIGN(4K); - __pg_mount_point = ALIGN(4K); - . += 12K; - __proc_table = ALIGN(4K); - . += 128M; - __kernel_heap_start = ALIGN(4K); /* 内核结束的地方即堆开始的地方 */ } \ No newline at end of file