m68k: fix clobbering a5 in setjmp() [BZ #24202]
authorSergei Trofimovich <slyfox@gentoo.org>
Mon, 21 Dec 2020 04:54:34 +0000 (10:24 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Mon, 21 Dec 2020 04:54:34 +0000 (10:24 +0530)
commit6eb7e1da0e805e2893a0b70a5813641529d8c7e2
tree3e41bd0527d16d03a0b88c09a7a68afb360bc90c
parent756608dbe89f6a829c8f0d2479e09eb026e48d8b
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.
sysdeps/m68k/setjmp.c