Enable exception table mechanism

This commit is contained in:
Chen Chengjun
2024-06-27 21:09:44 +08:00
committed by Tate, Hongliang Tian
parent 5b9dd2fee8
commit 5f7cf245ac
3 changed files with 88 additions and 0 deletions

View File

@ -58,6 +58,16 @@ SECTIONS
__bss_end = .;
}
# The section to store exception table (ExTable).
# This table is used for recovering from specific exception handling faults
# occurring at known points in the code.
# Ref: /aster-frame/src/arch/x86/ex_table.rs
.ex_table : AT(ADDR(.ex_table) - KERNEL_VMA) {
__ex_table = .;
KEEP(*(SORT(.ex_table)))
__ex_table_end = .;
}
.ktest_array : AT(ADDR(.ktest_array) - KERNEL_VMA) {
__ktest_array = .;
KEEP(*(SORT(.ktest_array)))