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