1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 02:58:57 +00:00

setup: Define __stack_chk_guard

If it is not defined, at least some installations of GCC will use their own
stack protector implementation (creating multiple definitions of
__stack_chk_fail).
This commit is contained in:
Saleem Rashid 2018-04-02 18:21:42 +01:00 committed by Pavol Rusnak
parent 1f377bd9f6
commit d564805baa

View File

@ -29,6 +29,8 @@
#include "layout.h"
#include "util.h"
uint32_t __stack_chk_guard;
static inline void __attribute__((noreturn)) fault_handler(const char *line1) {
layoutDialog(&bmp_icon_error, NULL, NULL, NULL, line1, "detected.", NULL, "Please unplug", "the device.", NULL);
for (;;) {} // loop forever