bsp,abstract-machine: fix the order of .rti_fn* sections

* now initcall can work successfully, and msh can show prompt
This commit is contained in:
Zihao Yu 2023-05-24 14:29:16 +08:00
parent fed1897b98
commit 624077b98c
4 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,19 @@
SECTIONS {
. = ALIGN(8);
.myextra : {
/* section information for initial. */
. = ALIGN(8);
__rt_init_start = .;
KEEP(*(SORT(.rti_fn*)))
__rt_init_end = .;
. = ALIGN(8);
__rt_utest_tc_tab_start = .;
KEEP(*(UtestTcTab))
__rt_utest_tc_tab_end = .;
}
end = .;
_end = .;
_heap_start = ALIGN(0x1000);
}