X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/0067bc210e621ccda286092d081a7890d65e1c18..8fdcd1575a97862975fa019f09c00453a2a7d8bb:/lunaix-os/link/linker.ld diff --git a/lunaix-os/link/linker.ld b/lunaix-os/link/linker.ld index f61e368..ba3a385 100644 --- a/lunaix-os/link/linker.ld +++ b/lunaix-os/link/linker.ld @@ -41,6 +41,12 @@ SECTIONS { build/obj/hal/*.o (.text) } + __usrtext_start = ALIGN(4K); + .usrtext BLOCK(4K) : AT ( ADDR(.usrtext) - 0xC0000000 ) { + build/obj/kernel/*.o (.usrtext) + } + __usrtext_end = ALIGN(4K); + .bss BLOCK(4K) : AT ( ADDR(.bss) - 0xC0000000 ) { build/obj/kernel/*.o (.bss) build/obj/hal/*.o (.bss) @@ -61,7 +67,4 @@ SECTIONS { } __kernel_end = ALIGN(4K); - __proc_table = ALIGN(4K); - . += 128M; - __kernel_heap_start = ALIGN(4K); /* 内核结束的地方即堆开始的地方 */ } \ No newline at end of file