Index: libunwind/src/UnwindLevel1.c =================================================================== --- libunwind/src/UnwindLevel1.c +++ libunwind/src/UnwindLevel1.c @@ -167,6 +167,9 @@ } extern int __unw_step_stage2(unw_cursor_t *); +#if defined(_LIBUNWIND_USE_CET) +__attribute__((noinline)) +#endif static _Unwind_Reason_Code unwind_phase2(unw_context_t *uc, unw_cursor_t *cursor, _Unwind_Exception *exception_object) { __unw_init_local(cursor, uc); @@ -286,6 +289,9 @@ return _URC_FATAL_PHASE2_ERROR; } +#if defined(_LIBUNWIND_USE_CET) +__attribute__((noinline)) +#endif static _Unwind_Reason_Code unwind_phase2_forced(unw_context_t *uc, unw_cursor_t *cursor, _Unwind_Exception *exception_object,