summaryrefslogtreecommitdiff
path: root/src/kernel/linker.ld
diff options
context:
space:
mode:
authordzwdz2022-05-21 21:24:15 +0200
committerdzwdz2022-05-21 21:24:15 +0200
commitef52650c4a0723b242deb72ce2726f6846a6e986 (patch)
treebdf42a732d694a58cdae1ba8314ae98e096e2399 /src/kernel/linker.ld
parente0101ecf0d2f29d8860e865e3f333803af918f2e (diff)
kernel/i386: only map what's absolutely necessary in the user
Diffstat (limited to 'src/kernel/linker.ld')
-rw-r--r--src/kernel/linker.ld10
1 files changed, 9 insertions, 1 deletions
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)