Add .ex_table section on loongarch64 platforms
This commit is contained in:
parent
577d8294d0
commit
ff84f60489
|
|
@ -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.*)
|
||||
|
|
|
|||
Loading…
Reference in New Issue