summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/ssp_nonshared.cpp
blob: 1db9c6b7293fac75ab4495299a3f732b9431471f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Copyright (c) 2021, Brian Gianforcaro <bgianf@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <sys/internals.h>

#if defined __SSP__ || defined __SSP_ALL__
#    error "file must not be compiled with stack protection enabled on it. Use -fno-stack-protector"
#endif

extern "C" {

__attribute__((noreturn)) void __stack_chk_fail_local()
{
    __stack_chk_fail();
}

} // extern "C"