Harald Welte | 1afb70a | 2020-08-05 11:59:26 +0200 | [diff] [blame^] | 1 | #include <stdint.h> |
2 | #include <osmocom/core/panic.h> | ||||
3 | |||||
4 | /* This is what's minimally required to fix builds on Ubuntu 20.04, | ||||
5 | * where stack smashing protection is enabled by default when using dpkg | ||||
6 | * - even when cross-compiling: https://osmocom.org/issues/4687 | ||||
7 | */ | ||||
8 | |||||
9 | uintptr_t __stack_chk_guard = 0xdeadbeef; | ||||
10 | |||||
11 | void __stack_chk_fail(void) | ||||
12 | { | ||||
13 | osmo_panic("Stack smashing detected!\r\n"); | ||||
14 | } |