X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/b91be0033265b5b6bd716bd39cb0971da41906c4..28c176b668c841a3b7fb093faccf0efa39257603:/lunaix-os/link/linker.ld diff --git a/lunaix-os/link/linker.ld b/lunaix-os/link/linker.ld deleted file mode 100644 index 937777b..0000000 --- a/lunaix-os/link/linker.ld +++ /dev/null @@ -1,62 +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) - *(.hhk_init_text) - } - - .hhk_init_bss BLOCK(4K) : { - *(.hhk_init_bss) - } - - .hhk_init_data BLOCK(4K) : { - *(.hhk_init_data) - } - - .hhk_init_rodata BLOCK(4K) : { - *(.hhk_init_rodata) - } - __init_hhk_end = ALIGN(4K); - - /* Relocation of our higher half kernel */ - . += 0xC0000000; - - /* 好了,我们的内核…… */ - .text BLOCK(4K) : AT ( ADDR(.text) - 0xC0000000 ) { - __kernel_start = .; - PROVIDE(__ktext_start = .); - - *(.text) - - PROVIDE(__ktext_end = .); - } - - .data BLOCK(4K) : AT ( ADDR(.data) - 0xC0000000 ) { - *(.data) - } - - .rodata BLOCK(4K) : AT ( ADDR(.rodata) - 0xC0000000 ) { - *(.rodata) - } - - .kpg BLOCK(4K) : AT ( ADDR(.kpg) - 0xC0000000 ) { - *(.kpg) - } - - .bss BLOCK(4K) : AT ( ADDR(.bss) - 0xC0000000 ) { - *(.bss) - } - - __kernel_end = ALIGN(4K); -} \ No newline at end of file