Add .ex_table section on loongarch64 platforms

This commit is contained in:
Zejun Zhao 2025-10-29 13:42:42 +08:00 committed by Tate, Hongliang Tian
parent 577d8294d0
commit ff84f60489
1 changed files with 10 additions and 0 deletions

View File

@ -33,6 +33,16 @@ SECTIONS
*(.text .text.*)
PROVIDE(__etext = .);
}
# 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: /ostd/src/ex_table.rs
.ex_table : AT(ADDR(.ex_table) - KERNEL_VMA_OFFSET) {
__ex_table = .;
KEEP(*(SORT(.ex_table)))
__ex_table_end = .;
}
.rodata : AT(ADDR(.rodata) - KERNEL_VMA_OFFSET) {
*(.rodata .rodata.*)