summaryrefslogtreecommitdiff
path: root/kc/kc.ld
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2022-02-24 01:58:07 +0000
committerAda Christine <adachristine18@gmail.com>2022-02-24 01:58:07 +0000
commit1923e47fd296399180eaf19b990d5e951d71ccd2 (patch)
tree2c61fa3d29321c3cf8e31a6ca1b1edcc053cb8f1 /kc/kc.ld
parent4fa48a2a7814c2f7d3992533313df283c3aa2652 (diff)
many changes
- boot time memory allocation has changed. the fractal page map has been replaced by a single self-mapped page giving 2MiB of ready virtual space to play with without needing a fully-initialized memory manager. this scheme may be repeated for other purposes - the page stack has now been totally overhauled to make use of sparse allocation and all of the ugly init_*() procedures are gone. long live the new interface. also reference counting is a thing now. sort of. - found a bug in vmt_init_node where insertion did not use the root node as the parent in the case of no predecessor node. whoops.
Diffstat (limited to 'kc/kc.ld')
-rw-r--r--kc/kc.ld11
1 files changed, 7 insertions, 4 deletions
diff --git a/kc/kc.ld b/kc/kc.ld
index dc158f3..76e096a 100644
--- a/kc/kc.ld
+++ b/kc/kc.ld
@@ -35,11 +35,11 @@ SECTIONS
.text : ALIGN(4K)
{
- PROVIDE(kc_text_begin = .);
+ PROVIDE_HIDDEN(kc_text_begin = .);
*(.text.start)
*(.text)
. = ALIGN(4K);
- PROVIDE(kc_text_end = .);
+ PROVIDE_HIDDEN(kc_text_end = .);
} =0xcc
.dynamic : ALIGN(4K)
@@ -49,7 +49,7 @@ SECTIONS
.data :
{
- PROVIDE(kc_data_begin = .);
+ PROVIDE_HIDDEN(kc_data_begin = .);
*(.rodata)
*(.data)
}
@@ -63,9 +63,12 @@ SECTIONS
.bss :
{
*(.bss)
- PROVIDE(kc_data_end = .);
+ . = ALIGN(4K);
+ PROVIDE_HIDDEN(kc_data_end = .);
}
+ PROVIDE_HIDDEN(kc_image_end = .);
+
/DISCARD/ :
{
*(.eh_frame)