Speed up stack unwinding

This commit is contained in:
Ruihan Li 2024-04-02 23:09:27 +08:00 committed by Tate, Hongliang Tian
parent 6335387104
commit 198363c2d3
2 changed files with 3 additions and 2 deletions

View File

@ -28,7 +28,7 @@ spin = "0.9.4"
static_assertions = "1.1.0"
tdx-guest = { path = "../libs/tdx-guest", optional = true }
trapframe = { git = "https://github.com/asterinas/trapframe-rs", rev = "2f37590" }
unwinding = { version = "0.2.1", default-features = false, features = ["fde-static", "hide-trace", "panic", "personality", "unwinder"] }
unwinding = { version = "0.2.1", default-features = false, features = ["fde-gnu-eh-frame-hdr", "hide-trace", "panic", "personality", "unwinder"] }
volatile = { version = "0.4.5", features = ["unstable"] }
[target.x86_64-unknown-none.dependencies]

View File

@ -28,6 +28,7 @@ SECTIONS
.rodata : AT(ADDR(.rodata) - KERNEL_VMA) { *(.rodata .rodata.*) }
.eh_frame_hdr : AT(ADDR(.eh_frame_hdr) - KERNEL_VMA) {
PROVIDE(__GNU_EH_FRAME_HDR = .);
KEEP(*(.eh_frame_hdr .eh_frame_hdr.*))
}
. = ALIGN(8);
@ -71,4 +72,4 @@ SECTIONS
. = DATA_SEGMENT_END(.);
__kernel_end = . - KERNEL_VMA;
}
}