From ef52650c4a0723b242deb72ce2726f6846a6e986 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 21 May 2022 21:24:15 +0200 Subject: kernel/i386: only map what's absolutely necessary in the user --- src/kernel/linker.ld | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/kernel/linker.ld') diff --git a/src/kernel/linker.ld b/src/kernel/linker.ld index 274abc3..84945b1 100644 --- a/src/kernel/linker.ld +++ b/src/kernel/linker.ld @@ -2,10 +2,18 @@ ENTRY(_start) SECTIONS { + . = 0; + .text.early BLOCK(4K) : ALIGN(4K) + { + *(.multiboot) + *(.text.early) + _text_early_len = .; + } + . = 1M; .text BLOCK(4K) : ALIGN(4K) { - *(.multiboot) + _kern_start = .; *(.text) } .rodata BLOCK(4K) : ALIGN(4K) -- cgit v1.2.3