diff --git a/compiler-rt/compiler-rt-cdylib/src/lib.rs b/compiler-rt/compiler-rt-cdylib/src/lib.rs index 81affa242..f62430a00 100644 --- a/compiler-rt/compiler-rt-cdylib/src/lib.rs +++ b/compiler-rt/compiler-rt-cdylib/src/lib.rs @@ -62,3 +62,5 @@ declare!(___powidf2, __powidf2); fn eh_personality() {} #[lang = "panic_fmt"] fn panic_fmt() {} +#[lang = "eh_unwind_resume"] +fn eh_unwind_resume() {} diff --git a/src/bin/intrinsics.rs b/src/bin/intrinsics.rs index 5a4a34503..3ead4a482 100644 --- a/src/bin/intrinsics.rs +++ b/src/bin/intrinsics.rs @@ -405,3 +405,7 @@ extern "C" fn eh_personality() {} #[cfg(not(test))] #[lang = "panic_fmt"] extern "C" fn panic_fmt() {} + +#[cfg(not(test))] +#[lang = "eh_unwind_resume"] +extern "C" fn eh_unwind_resume() {}