summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/kernel.ld12
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 = .;