X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/b60166b327a9108b07e3069fa6568a451529ffd9..32b9a6d76790c73d3d2d36d9081a2581cc65d184:/lunaix-os/link/linker.ld diff --git a/lunaix-os/link/linker.ld b/lunaix-os/link/linker.ld index a409542..c3d57da 100644 --- a/lunaix-os/link/linker.ld +++ b/lunaix-os/link/linker.ld @@ -2,6 +2,7 @@ ENTRY(start_) SECTIONS { . = 0x100000; + __kboot_start = .; /* 这里是我们的高半核初始化代码段和数据段 */ .boot.text BLOCK(4K) : @@ -29,7 +30,7 @@ SECTIONS { { *(.boot.rodata) } - __kexec_boot_end = ALIGN(4K); + __kboot_end = ALIGN(4K); /* ---- boot end ---- */ @@ -179,10 +180,24 @@ SECTIONS { } + .ksymtable BLOCK(4K) : AT ( ADDR(.ksymtable) - 0xC0000000 ) + { + *(.ksymtable) + } + .bss BLOCK(4K) : AT ( ADDR(.bss) - 0xC0000000 ) { *(.bss) } + .bss.kstack BLOCK(4K) : AT ( ADDR(.bss.kstack) - 0xC0000000) + { + PROVIDE(__bsskstack_start = .); + + *(.bss.kstack) + + PROVIDE(__bsskstack_end = .); + } + __kexec_end = ALIGN(4K); } \ No newline at end of file