diff --git a/core/embed/lib/error_handling.c b/core/embed/lib/error_handling.c index cfaab4837..437dc439c 100644 --- a/core/embed/lib/error_handling.c +++ b/core/embed/lib/error_handling.c @@ -23,7 +23,11 @@ #include "error_handling.h" #include "system.h" +#ifndef TREZOR_EMULATOR +// Stack check guard value set in startup code. +// This is used if stack protection is enabled. uint32_t __stack_chk_guard = 0; +#endif // Calls to this function are inserted by the compiler // when stack protection is enabled.