From 18dcd7b9c928fea760a8b4247e67610e03c4893f Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sun, 12 Sep 2021 09:37:28 -0400 Subject: [PATCH] Kernel: Define __stack_chk_guard for aarch64 Prekernel Needed for functions that have local variables. In time we need to share this between aarch64 and intel, but while we figure out what exactly the aarch64 Prekernel should do, let's duplicate this. --- Kernel/Prekernel/Arch/aarch64/init.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Kernel/Prekernel/Arch/aarch64/init.cpp b/Kernel/Prekernel/Arch/aarch64/init.cpp index 86af24a419..a5f96edf24 100644 --- a/Kernel/Prekernel/Arch/aarch64/init.cpp +++ b/Kernel/Prekernel/Arch/aarch64/init.cpp @@ -4,8 +4,14 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include + extern "C" [[noreturn]] void init(); extern "C" [[noreturn]] void init() { for (;;) { } } + +// FIXME: Share this with the Intel Prekernel. +extern size_t __stack_chk_guard; +size_t __stack_chk_guard;