From 6eb7e1da0e805e2893a0b70a5813641529d8c7e2 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 21 Dec 2020 10:24:34 +0530 Subject: 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'sysdeps/m68k') diff --git a/sysdeps/m68k/setjmp.c b/sysdeps/m68k/setjmp.c index 0b86f2d..d8cc251 100644 --- a/sysdeps/m68k/setjmp.c +++ b/sysdeps/m68k/setjmp.c @@ -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 -- cgit v1.1