From 5d8674f2bdd536124b1dd026dfa729a1376b3cac Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 30 Nov 2024 12:36:15 -0700 Subject: Import edk2 edk2-stable202411 (hash 0f3867fa6ef0553e26c42f7d71ff6bdb98429742) Bring in the latest stable branch for updated defines (especailly Loongson). Remove ^M as described in sys/contrib/edk2/FREEBSD-upgrade. Not the absolute latest, but aligned to the edk2-stable202411 tag. Sponsored by: Netflix --- .../StackCheckLibNull/StackCheckLibNullGcc.c | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 MdePkg/Library/StackCheckLibNull/StackCheckLibNullGcc.c (limited to 'MdePkg/Library/StackCheckLibNull/StackCheckLibNullGcc.c') diff --git a/MdePkg/Library/StackCheckLibNull/StackCheckLibNullGcc.c b/MdePkg/Library/StackCheckLibNull/StackCheckLibNullGcc.c new file mode 100644 index 000000000000..5c4278d60bf4 --- /dev/null +++ b/MdePkg/Library/StackCheckLibNull/StackCheckLibNullGcc.c @@ -0,0 +1,23 @@ +/** @file + Defines the stack cookie variable for GCC and Clang compilers. + + Copyright (c) Microsoft Corporation. + SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#include + +VOID *__stack_chk_guard = (VOID *)(UINTN)0x0; + +/** + This function gets called when a gcc/clang generated stack cookie fails. This implementation does nothing when + a stack cookie failure occurs. + +**/ +VOID +EFIAPI +__stack_chk_fail ( + VOID + ) +{ +} -- cgit v1.3