diff options
| author | Alexey Gavrilov <rebovas@yahoo.com> | 2025-05-10 16:04:55 +0700 |
|---|---|---|
| committer | Alexey Gavrilov <rebovas@yahoo.com> | 2025-05-10 16:04:55 +0700 |
| commit | 5d3179d0e2c3915af65dedef0952672220ac4714 (patch) | |
| tree | d871c0041066c910aac06a6a58e7c0cc6cf81d66 /kernel/linker.ld | |
| parent | 3003b42fb06a707484bd7d7902057c9d65d4c0df (diff) | |
Kheap section + metadata
Diffstat (limited to 'kernel/linker.ld')
| -rw-r--r-- | kernel/linker.ld | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/kernel/linker.ld b/kernel/linker.ld index ae4d98d..abee596 100644 --- a/kernel/linker.ld +++ b/kernel/linker.ld @@ -6,28 +6,44 @@ SECTIONS .multiboot : { + _startMultiboot = .; *(.multiboot) + _endMultiboot = .; } + .text BLOCK(4K) : ALIGN(4K) { + _startText = .; *(.text) - *(.eh_frame) - *(.ctors) + _endText = .; } .rodata BLOCK(4K) : ALIGN(4k) { + _startRodata = .; *(.rodata) + _endRodata = .; } .data BLOCK(4K) : ALIGN(4K) { + _startData = .; *(.data) + _endData = .; } - .bss BLOCK(4K) : ALIGN(4K) + .bss BLOCK(16K) : ALIGN(16K) { - *(COMMON) + _startBss = .; *(.bss) + _endBss = .; } + + .kheap BLOCK(4k) : ALIGN(4k) + { + _startKheap = .; + *(.kheap) + _endKheap = .; + } + } |
