4 FUTURE: Use dynamic linker to separate kernel and boot code
6 We will pull our higher half kernel out of this shit
7 and load it separately once we have our dynamic linker ready.
13 /* 这里是我们的高半核初始化代码段和数据段 */
15 .hhk_init_text BLOCK(4K) : {
17 build/obj/arch/x86/*.o (.hhk_init)
18 build/obj/arch/x86/*.o (.text)
21 .hhk_init_bss BLOCK(4K) : {
22 build/obj/arch/x86/*.o (.bss)
25 .hhk_init_data BLOCK(4K) : {
26 build/obj/arch/x86/*.o (.data)
29 .hhk_init_rodata BLOCK(4K) : {
30 build/obj/arch/x86/*.o (.rodata)
34 /* Relocation of our higher half kernel */
38 .text BLOCK(4K) : AT ( ADDR(.text) - 0xC0000000 ) {
40 build/obj/kernel/*.o (.text)
43 .bss BLOCK(4K) : AT ( ADDR(.bss) - 0xC0000000 ) {
44 build/obj/kernel/*.o (.bss)
47 .data BLOCK(4k) : AT ( ADDR(.data) - 0xC0000000 ) {
48 build/obj/kernel/*.o (.data)
51 .rodata BLOCK(4K) : AT ( ADDR(.rodata) - 0xC0000000 ) {
52 build/obj/kernel/*.o (.rodata)
55 .kpg BLOCK(4K) : AT ( ADDR(.kpg) - 0xC0000000 ) {
56 build/obj/arch/x86/*.o (.kpg)
59 __kernel_end = ALIGN(.);
60 __heap_start = ALIGN(.); /* 内核结束的地方即堆开始的地方 */