m68k: fix clobbering a5 in setjmp() [BZ #24202]

setjmp() uses C code to store current registers into jmp_buf
environment. -fstack-protector-all places canary into setjmp()
prologue and clobbers 'a5' before it gets saved.

The change inhibits stack canary injection to avoid clobber.
This commit is contained in:
Sergei Trofimovich 2020-12-21 10:24:34 +05:30 committed by Siddhesh Poyarekar
parent 756608dbe8
commit 6eb7e1da0e

View File

@ -19,6 +19,7 @@
/* Save the current program position in ENV and return 0. */
int
inhibit_stack_protector
#if defined BSD_SETJMP
# undef setjmp
# define savemask 1