summaryrefslogtreecommitdiffstats
path: root/kernel/linker.ld
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/linker.ld')
-rw-r--r--kernel/linker.ld24
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 = .;
+ }
+
}