mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +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:
parent
1f377bd9f6
commit
d564805baa
2
setup.c
2
setup.c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user