From e65ff1827c4e9fa1f5165780fbe0c5c961b0cd81 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 4 Dec 2021 11:33:01 +0100 Subject: [PATCH] Add __stack_chk_fail_local needed by some architectures. --- libc/ssp/__stack_chk_fail.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libc/ssp/__stack_chk_fail.c b/libc/ssp/__stack_chk_fail.c index 5ce52433..a260969c 100644 --- a/libc/ssp/__stack_chk_fail.c +++ b/libc/ssp/__stack_chk_fail.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2015 Jonas 'Sortie' Termansen. + * Copyright (c) 2014, 2015, 2021 Jonas 'Sortie' Termansen. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -53,3 +53,9 @@ void __stack_chk_fail(void) scram(SCRAM_STACK_SMASH, NULL); #endif } + +__attribute__((noreturn)) +void __stack_chk_fail_local(void) +{ + __stack_chk_fail(); +}