mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 10:53:25 +00:00
Add ktest array to riscv64 linker
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
a7e09ff415
commit
8e210c2241
@ -29,6 +29,14 @@ SECTIONS
|
||||
KEEP(*(.eh_frame .eh_frame.*))
|
||||
}
|
||||
|
||||
# The list of unit test function symbols that should be executed while
|
||||
# doing `cargo osdk test`.
|
||||
.ktest_array : AT(ADDR(.ktest_array) - KERNEL_VMA_OFFSET) {
|
||||
__ktest_array = .;
|
||||
KEEP(*(SORT(.ktest_array)))
|
||||
__ktest_array_end = .;
|
||||
}
|
||||
|
||||
.init_array : AT(ADDR(.init_array) - KERNEL_VMA_OFFSET) {
|
||||
__sinit_array = .;
|
||||
KEEP(*(SORT(.init_array .init_array.*)))
|
||||
|
Reference in New Issue
Block a user