diff --git a/kernel/kernel.ld b/kernel/kernel.ld index e62b70a..6cfeb5d 100644 --- a/kernel/kernel.ld +++ b/kernel/kernel.ld @@ -3,9 +3,6 @@ ENTRY (_start) SECTIONS { . = 0x1000; - /* The kernel will live at 12MB in the virtual address space, */ - /* which will be mapped to 0 in the physical address space. */ - /* Note that we page-align the sections. */ .early.text ALIGN (4K) : { *(.early.text) } @@ -19,28 +16,20 @@ SECTIONS *(.early.bss) } - - . += 0xC00000; - /* Add a symbol that indicates the start address of the kernel. */ - .text ALIGN (4K) : AT (ADDR (.text) - 0xC00000) - { + .text ALIGN (4K) : AT (ADDR (.text) - 0xC00000) { *(.text) } - .rodata ALIGN (4K) : AT (ADDR (.rodata) - 0xC00000) - { + .rodata ALIGN (4K) : AT (ADDR (.rodata) - 0xC00000) { *(.rodata) } - .data ALIGN (4K) : AT (ADDR (.data) - 0xC00000) - { + .data ALIGN (4K) : AT (ADDR (.data) - 0xC00000) { *(.data) } - .bss ALIGN (4K) : AT (ADDR (.bss) - 0xC00000) - { + .bss ALIGN (4K) : AT (ADDR (.bss) - 0xC00000) { *(COMMON) *(.bss) } - .pagereserve ALIGN (4K) : { *(.pagereserve) }