From d564805baa0717a215692a511895458bb89adc41 Mon Sep 17 00:00:00 2001 From: Saleem Rashid Date: Mon, 2 Apr 2018 18:21:42 +0100 Subject: [PATCH] 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). --- setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.c b/setup.c index efc3e7fda..f78c8ec61 100644 --- a/setup.c +++ b/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