Add __stack_chk_fail_local needed by some architectures.
This commit is contained in:
parent
4ed2bb1c50
commit
e65ff1827c
|
@ -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
|
* Permission to use, copy, modify, and distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* 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);
|
scram(SCRAM_STACK_SMASH, NULL);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__attribute__((noreturn))
|
||||||
|
void __stack_chk_fail_local(void)
|
||||||
|
{
|
||||||
|
__stack_chk_fail();
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue