diff options
author | dzwdz | 2022-05-21 21:24:15 +0200 |
---|---|---|
committer | dzwdz | 2022-05-21 21:24:15 +0200 |
commit | ef52650c4a0723b242deb72ce2726f6846a6e986 (patch) | |
tree | bdf42a732d694a58cdae1ba8314ae98e096e2399 /src/kernel/linker.ld | |
parent | e0101ecf0d2f29d8860e865e3f333803af918f2e (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.ld | 10 |
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) |