X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/1fe5f5eb5378a47bf0f3451762743c162e40faad..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 71bc151..0000000 --- a/lunaix-os/link/linker.ld +++ /dev/null @@ -1,86 +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; - - /* 这里是我们的高半核初始化代码段和数据段 */ - .boot.text BLOCK(4K) : { - *(.multiboot) - *(.boot.text) - } - - .boot.bss BLOCK(4K) : { - *(.boot.bss) - } - - .boot.data BLOCK(4K) : { - *(.boot.data) - } - - .boot.rodata BLOCK(4K) : { - *(.boot.rodata) - } - - .boot.bss BLOCK(4K) : { - *(.boot.rodata) - } - __kexec_boot_end = ALIGN(4K); - - /* Relocation of our higher half kernel */ - . += 0xC0000000; - - /* 好了,我们的内核…… */ - .text BLOCK(4K) : AT ( ADDR(.text) - 0xC0000000 ) { - __kexec_start = .; - PROVIDE(__kexec_text_start = .); - - *(.text) - - PROVIDE(__kexec_text_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) - } - - . = ALIGN(4K); - - /* for generated array, we align to address line size */ - - .lga BLOCK(4K) : AT ( ADDR(.lga) - 0xC0000000 ) { - PROVIDE(__lga_twiplugin_inits_start = .); - - KEEP(*(.lga.twiplugin_inits)); - - PROVIDE(__lga_twiplugin_inits_end = .); - - /* ---- */ - - PROVIDE(__lga_pci_dev_drivers_start = .); - - KEEP(*(.lga.pci_dev_drivers)); - - PROVIDE(__lga_pci_dev_drivers_end = .); - } - - .bss BLOCK(4K) : AT ( ADDR(.bss) - 0xC0000000 ) { - *(.bss) - } - - __kexec_end = ALIGN(4K); -} \ No newline at end of file