blob: c994eef48036d486fb0f18ce95d0379b53a870f9 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#include <stdlib.h>
#include <zircon/assert.h>
void abort() { ZX_PANIC("abort() called!\n"); }
// The compiler generates calls to this for -fstack-protector.
extern "C" void __stack_chk_fail() { ZX_PANIC("stack canary corrupted!\n"); }