diff options
author | Marvin Borner | 2020-05-28 19:40:44 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-28 19:40:44 +0200 |
commit | f784575fdbbee6e096866c0b506fd660dc5ffe1c (patch) | |
tree | fab4d0fe05e72c8dc4dba1161f457a877eada61b /src/kernel/linker.ld | |
parent | 8e1e50085e9c53ddd0b7400173ba16a140b7e967 (diff) |
Started higher-half kernel
Diffstat (limited to 'src/kernel/linker.ld')
-rw-r--r-- | src/kernel/linker.ld | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/src/kernel/linker.ld b/src/kernel/linker.ld index f134ccb..b7bde1d 100644 --- a/src/kernel/linker.ld +++ b/src/kernel/linker.ld @@ -1,34 +1,32 @@ -ENTRY(_start) +ENTRY(boot) + +phys = 0x100000; +offset = 0xC0000000; +virt = offset + phys; SECTIONS { - . = 1M; + . = virt; - .text BLOCK(4K) : ALIGN(4K) + .text : AT (ADDR (.text) - offset) { - *(.multiboot) - *(.start_section) *(.text) - } - - .rodata BLOCK(4K) : ALIGN(4K) - { *(.rodata) + . = ALIGN(0x1000); } - .data BLOCK(4K) : ALIGN(4K) + .data : AT (ADDR (.data) - offset) { *(.data) + . = ALIGN(0x1000); } - .bss BLOCK(4K) : ALIGN(4K) + .bss : AT (ADDR (.bss) - offset) { *(.COMMON) *(.bss) + . = ALIGN(0x1000); } - .end BLOCK(4K) : ALIGN(4K) - { - *(.end) - } + KERNEL_END = .; }
\ No newline at end of file |