From eaadde5453e33af6826bb03488991aab0297d3dd Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 31 May 2020 20:26:40 +0200 Subject: OMG --- src/kernel/linker.ld | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'src/kernel/linker.ld') diff --git a/src/kernel/linker.ld b/src/kernel/linker.ld index b7bde1d..a55b13f 100644 --- a/src/kernel/linker.ld +++ b/src/kernel/linker.ld @@ -1,32 +1,28 @@ ENTRY(boot) -phys = 0x100000; -offset = 0xC0000000; -virt = offset + phys; - SECTIONS { - . = virt; + . = 1M; - .text : AT (ADDR (.text) - offset) + .text BLOCK(4K) : ALIGN(4K) { + text_start = .; *(.text) *(.rodata) - . = ALIGN(0x1000); } - .data : AT (ADDR (.data) - offset) + .data BLOCK(4K) : ALIGN(4K) { + data_start = .; *(.data) - . = ALIGN(0x1000); } - .bss : AT (ADDR (.bss) - offset) + .bss BLOCK(4K) : ALIGN(4K) { + bss_start = .; *(.COMMON) *(.bss) - . = ALIGN(0x1000); } - KERNEL_END = .; + kernel_end = .; } \ No newline at end of file -- cgit v1.2.3