blob: 3130dd8ec80780c799252a63984b9a6a62c6167d [file] [log] [blame]
Harald Welte1afb70a2020-08-05 11:59:26 +02001#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
9uintptr_t __stack_chk_guard = 0xdeadbeef;
10
11void __stack_chk_fail(void)
12{
13 osmo_panic("Stack smashing detected!\r\n");
14}