diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-20 11:26:32 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-20 11:26:32 -0400 |
commit | 5e0e6240ab058c490304e0789552b45160f900be (patch) | |
tree | 82e19097301d3914f80e356710438278df24fd36 /config/kernel.ld | |
parent | fix code segment (retfq) on long mode edge case (kvm) (diff) | |
download | comus-5e0e6240ab058c490304e0789552b45160f900be.tar.gz comus-5e0e6240ab058c490304e0789552b45160f900be.tar.bz2 comus-5e0e6240ab058c490304e0789552b45160f900be.zip |
fix term/gpu memory OOB error, add dynamic kernel identity map with N_IDENT_PTS
Diffstat (limited to 'config/kernel.ld')
-rw-r--r-- | config/kernel.ld | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config/kernel.ld b/config/kernel.ld index 52e9088..bcacf61 100644 --- a/config/kernel.ld +++ b/config/kernel.ld @@ -9,27 +9,39 @@ SECTIONS . = ALIGN(0x1000); .text : { + text_start = .; *(.multiboot) *(.text) + *(.text.*) + text_end = .; } . = ALIGN(0x1000); .rodata : { + rodata_start = .; *(.rodata) + *(.rodata.*) + rodata_end = .; } . = ALIGN(0x1000); .data : { + data_start = .; *(.data) + *(.data.*) + data_end = .; } . = ALIGN(0x1000); .bss : { + bss_start = .; *(COMMON) *(.bss) + *(.bss.*) + bss_end = .; } kernel_end = .; |